Skip to content
Commit e1d24410 authored by Heyi Guo's avatar Heyi Guo Committed by mergify[bot]
Browse files

ArmPkg/ArmExceptionLib: use static buffer for sp_el0



The exception library is also used in DxeMain before memory services
are available, and AllocatePages() will fail in this case and cause
sp_el0 remains 0. Then if any exception occurs before CpuDxe driver is
loaded, a recursive exception will be trigged by page translation
fault for sp = 0 - 0x130.

Use static buffer instead to fix this issue.

Signed-off-by: default avatarHeyi Guo <guoheyi@linux.alibaba.com>
Reviewed-by: default avatarArd Biesheuvel <ard.biesheuvel@arm.com>
parent 14c7ed8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment