mirror of https://github.com/acidanthera/audk.git
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:
parent
2d41ea3aed
commit
35071e1574
|
@ -40,6 +40,7 @@ InternalSwitchStackAsm (
|
|||
);
|
||||
**/
|
||||
ASM_PFX(InternalSwitchStackAsm):
|
||||
mov x29, #0
|
||||
mov x30, x0
|
||||
mov sp, x3
|
||||
mov x0, x1
|
||||
|
|
Loading…
Reference in New Issue