Add support for handling runtime service requests
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>
Thu, 6 Feb 2014 10:36:15 +0000 (10:36 +0000)
committerDan Handley <dan.handley@arm.com>
Mon, 17 Feb 2014 18:51:44 +0000 (18:51 +0000)
commitcaa84939a4d8b1189dea8619ccc57bdb3026b125
treea7eb5e977cc9971c051ef469877fc3d00cba24ad
parent07f4e078b6871e5c74f6cb38f2726a2cfcb2b746
Add support for handling runtime service requests

This patch uses the reworked exception handling support to handle
runtime service requests through SMCs following the SMC calling
convention. This is a giant commit since all the changes are
inter-related. It does the following:

1. Replace the old exception handling mechanism with the new one
2. Enforce that SP_EL0 is used C runtime stacks.
3. Ensures that the cold and warm boot paths use the 'cpu_context'
   structure to program an ERET into the next lower EL.
4. Ensures that SP_EL3 always points to the next 'cpu_context'
   structure prior to an ERET into the next lower EL
5. Introduces a PSCI SMC handler which completes the use of PSCI as a
   runtime service

Change-Id: I661797f834c0803d2c674d20f504df1b04c2b852
Co-authored-by: Achin Gupta <achin.gupta@arm.com>
19 files changed:
bl31/aarch64/bl31_entrypoint.S
bl31/aarch64/exception_handlers.c [deleted file]
bl31/aarch64/runtime_exceptions.S
bl31/aarch64/runtime_exceptions_next.S [deleted file]
bl31/bl31.mk
bl31/bl31_main.c
bl31/context_mgmt.c
common/psci/psci_common.c
common/psci/psci_entry.S
common/psci/psci_main.c
common/psci/psci_private.h
common/psci/psci_setup.c
common/runtime_svc.c
include/aarch64/arch.h
include/asm_macros.S
include/context.h
include/context_mgmt.h
include/runtime_svc.h
lib/arch/aarch64/misc_helpers.S