]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/ArmExceptionLib: use EL0 stack for synchronous exceptions
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 15 Mar 2017 16:26:41 +0000 (16:26 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 27 Mar 2017 12:54:26 +0000 (13:54 +0100)
commit2d120489583a23386bec454a8a01f3ee1bc11e1e
tree016f6d36a492a9bb838c8a31c109dcef415fc34d
parent0b36d8fa73072382a4ad36e6c64d26f43cb81bc6
ArmPkg/ArmExceptionLib: use EL0 stack for synchronous exceptions

In order to be able to produce meaningful diagnostic output when taking
synchronous exceptions that have been caused by corruption of the stack
pointer, prepare the EL0 stack pointer and switch to it when handling the
'Sync exception using SPx' exception class.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Library/ArmExceptionLib/AArch64/AArch64Exception.c
ArmPkg/Library/ArmExceptionLib/AArch64/ExceptionSupport.S
ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf