From faaa2e7644ec6101de0e7d4f35b9dd2999f110a7 Mon Sep 17 00:00:00 2001 From: Vikram Kanigiri Date: Tue, 15 Jul 2014 16:49:22 +0100 Subject: Support asynchronous method for BL3-2 initialization This patch adds support for BL3-2 initialization by asynchronous method where BL3-1 transfers control to BL3-2 using world switch. After BL3-2 initialization, it transfers control to BL3-3 via SPD service handler. The SPD service handler initializes the CPU context to BL3-3 entrypoint depending on the return function indentifier from TSP initialization. Fixes ARM-software/TF-issues#184 Change-Id: I7b135c2ceeb356d3bb5b6a287932e96ac67c7a34 --- bl32/tsp/tsp.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bl32/tsp') diff --git a/bl32/tsp/tsp.mk b/bl32/tsp/tsp.mk index b9084d54..02cc13d3 100644 --- a/bl32/tsp/tsp.mk +++ b/bl32/tsp/tsp.mk @@ -39,6 +39,14 @@ BL32_SOURCES += bl32/tsp/tsp_main.c \ BL32_LINKERFILE := bl32/tsp/tsp.ld.S +# This flag determines if the TSPD initializes BL3-2 in tspd_init() (synchronous +# method) or configures BL3-1 to pass control to BL3-2 instead of BL3-3 +# (asynchronous method). +TSP_INIT_ASYNC := 0 + +$(eval $(call assert_boolean,TSP_INIT_ASYNC)) +$(eval $(call add_define,TSP_INIT_ASYNC)) + # Include the platform-specific TSP Makefile # If no platform-specific TSP Makefile exists, it means TSP is not supported # on this platform. -- cgit v1.2.3