coreboot-kgpe-d16/payloads/libpayload/arch/arm64
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
..
Kconfig arm64: xcompile: Add support for A53 erratum 843419 2015-08-28 06:46:09 +00:00
Makefile.inc libpayload: arm64: Conform to new coreboot lib_helpers.h and assume EL2 2018-10-12 20:14:54 +00:00
cache.c libpayload: arm64: Conform to new coreboot lib_helpers.h and assume EL2 2018-10-12 20:14:54 +00:00
coreboot.c libpayload arm64: Remove dependency on coreboot tables for dma areas 2015-03-21 13:38:29 +01:00
cpu.S
dummy_media.c cbfs: define libpayload_init_default_cbfs_media weakly 2015-07-06 09:42:12 +02:00
exception.c libpayload: arm64: Make exception handling closer to arm32 2018-10-12 20:17:28 +00:00
exception_asm.S libpayload: arm64: Make exception handling closer to arm32 2018-10-12 20:17:28 +00:00
gdb.c libpayload/arm64: Drop unused static array 2018-07-20 11:06:36 +00:00
head.S libpayload: arm64: Make exception handling closer to arm32 2018-10-12 20:17:28 +00:00
libpayload.ldscript libpayload: arm64: Make exception handling closer to arm32 2018-10-12 20:17:28 +00:00
main.c payloads: change coreboot to lowercase 2017-06-07 12:08:55 +02:00
memcpy.S
memmove.S
memset.S libpayload arm64: Remove the DONT_USE_DC macro 2015-03-21 13:35:58 +01:00
mmu.c libpayload: arm64: Conform to new coreboot lib_helpers.h and assume EL2 2018-10-12 20:14:54 +00:00
selfboot.c libpayload arm64: Add selfboot.c required by depthcharge 2015-01-09 07:07:53 +01:00
sysinfo.c libpayload arm64: Add functions for reading memranges 2015-03-21 13:36:04 +01:00
timer.c
util.S
virtual.c