coreboot-kgpe-d16/payloads
Julius Werner 5c0e72ff99 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>
2018-10-12 20:17:28 +00:00
..
bayou payloads: Remove/fix trailing whitespace 2018-09-04 12:38:40 +00:00
coreinfo util/cbfstool: Support FIT payloads 2018-06-15 09:13:24 +00:00
external payloads/tianocore: Fix not applying patch 06_CorebootPayloadPkg_keep_cb_table 2018-10-11 01:20:06 +00:00
libpayload libpayload: arm64: Make exception handling closer to arm32 2018-10-12 20:17:28 +00:00
linuxcheck rampayload: Add the linuxcheck payload 2018-09-14 09:59:17 +00:00
nvramcui payloads/nvramcui/payload.sh: Fix shellcheck warnings 2018-01-24 23:01:35 +00:00
Kconfig payloads: Only show supported payloads in menuconfig 2018-10-09 11:29:52 +00:00
Makefile.inc payloads/external: Add yabits payload 2018-09-16 13:10:17 +00:00