MdePkg/BaseLib AARCH64: terminate stack frame list on stack switch

When switching to the DXE phase stack, set the frame pointer to zero so
that code walking the stack frame will not try to access stack frames
belonging to the old stack.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Ard Biesheuvel 2016-09-09 08:17:40 +01:00
parent 2d41ea3aed
commit 35071e1574
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ InternalSwitchStackAsm (
);
**/
ASM_PFX(InternalSwitchStackAsm):
mov x29, #0
mov x30, x0
mov sp, x3
mov x0, x1