aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/arm64/libpayload.ldscript
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2018-10-10 15:42:28 -0700
committerJulius Werner <jwerner@chromium.org>2018-10-12 20:17:28 +0000
commit5c0e72ff9952bef2dcb62881ced0d95f8ad9cf1d (patch)
treee297683091fcbea2b785c289e3f3af95bef5238f /payloads/libpayload/arch/arm64/libpayload.ldscript
parentca52a258822c1c47d533684c5a4cbe5f2b7bd487 (diff)
libpayload: arm64: Make exception handling closer to arm32
This patch reworks the arm64 exception handling to be more similar to how it works on arm32. This includes a bunch of features like actually saving and restoring more exception state in the exception_state structure and supporting the same sort of partial reentrancy that is useful for GDB. Since there's no instruction to directly load into or store out of SP on arm64, we can't do quite the same thing where we use that to read an exception_state_ptr variable right after exception entry when no other register is available. But we can do something very similar by (ab-)using the "high" stack pointer (SP_EL2) as a pointer to the exception_state struct and providing a function to change it. Change-Id: Ia16a1124be1824392a309ae1f4cb031547d184c1 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/29018 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'payloads/libpayload/arch/arm64/libpayload.ldscript')
-rw-r--r--payloads/libpayload/arch/arm64/libpayload.ldscript9
1 files changed, 0 insertions, 9 deletions
diff --git a/payloads/libpayload/arch/arm64/libpayload.ldscript b/payloads/libpayload/arch/arm64/libpayload.ldscript
index 5c807cef17..ceb0711680 100644
--- a/payloads/libpayload/arch/arm64/libpayload.ldscript
+++ b/payloads/libpayload/arch/arm64/libpayload.ldscript
@@ -77,15 +77,6 @@ SECTIONS
. += CONFIG_LP_STACK_SIZE;
. = ALIGN(16);
_stack = .;
-
- /* Exception stack. Having a separate exception stack
- * allows us to have later stages running in non-EL3 levels.
- */
-
- _exc_estack = .;
- . += CONFIG_LP_STACK_SIZE;
- . = ALIGN(16);
- _exc_stack = .;
}
_end = .;