Add Test Secure Payload Dispatcher (TSPD) service
This patch adds the TSPD service which is responsible for managing
communication between the non-secure state and the Test Secure Payload
(TSP) executing in S-EL1.

The TSPD does the following:

1. Determines the location of the TSP (BL3-2) image and passes control
   to it for initialization. This is done by exporting the 'bl32_init()'
   function.

2. Receives a structure containing the various entry points into the TSP
   image as a response to being initialized. The TSPD uses this
   information to determine how the TSP should be entered depending on
   the type of operation.

3. Implements a synchronous mechanism for entering into and returning
   from the TSP image. This mechanism saves the current C runtime
   context on top of the current stack and jumps to the TSP through an
   ERET instruction. The TSP issues an SMC to indicate completion of the
   previous request. The TSPD restores the saved C runtime context and
   resumes TSP execution.

This patch also introduces a Make variable 'SPD' to choose the specific
SPD to include in the build. By default, no SPDs are included in the
build.

Change-Id: I124da5695cdc510999b859a1bf007f4d049e04f3
Co-authored-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
1 parent dd3dc32 commit 375f538a797a89a5f49aab1be70e86df4511c05a
@Achin Gupta Achin Gupta authored on 18 Feb 2014
Dan Handley committed on 20 Feb 2014
Showing 9 changed files
View
Makefile
View
bl32/tsp/tsp-fvp.mk
View
bl32/tsp/tsp.mk
View
plat/fvp/plat_io_storage.c
View
services/spd/tspd/tspd.mk 0 → 100644
View
services/spd/tspd/tspd_common.c 0 → 100644
View
services/spd/tspd/tspd_helpers.S 0 → 100644
View
services/spd/tspd/tspd_main.c 0 → 100644
View
services/spd/tspd/tspd_private.h 0 → 100644