diff options
author | Heyi Guo <guoheyi@linux.alibaba.com> | 2020-06-09 09:26:30 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-06-10 18:06:45 +0000 |
commit | e1d24410da356731da70b3334f86343e11e207d2 (patch) | |
tree | 60fc661f433ff225e1290ce51ea8301823d3a35d /ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf | |
parent | 14c7ed8b51f60097ad771277da69f74b22a7a759 (diff) | |
download | edk2-e1d24410da356731da70b3334f86343e11e207d2.tar.gz edk2-e1d24410da356731da70b3334f86343e11e207d2.tar.bz2 edk2-e1d24410da356731da70b3334f86343e11e207d2.zip |
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: Heyi Guo <guoheyi@linux.alibaba.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf')
0 files changed, 0 insertions, 0 deletions