coreboot-kgpe-d16/payloads/libpayload/include/arm64/arch
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
..
asm.h
barrier.h
cache.h arm64: Decouple MMU functions from memranges 2015-06-02 11:34:23 +02:00
exception.h libpayload: arm64: Make exception handling closer to arm32 2018-10-12 20:17:28 +00:00
io.h libpayload: arm(64): add read8/16/32 and write8/16/32 2015-07-06 09:39:48 +02:00
lib_helpers.h libpayload: arm64: Conform to new coreboot lib_helpers.h and assume EL2 2018-10-12 20:14:54 +00:00
mmu.h arch/arm64/armv8/mmu: Add support for 48bit VA 2018-03-23 04:09:50 +00:00
types.h
virtual.h