diff --git a/MdePkg/Library/BaseLib/AArch64/SwitchStack.S b/MdePkg/Library/BaseLib/AArch64/SwitchStack.S index 2bce9c998f..c3ac8d7e4d 100644 --- a/MdePkg/Library/BaseLib/AArch64/SwitchStack.S +++ b/MdePkg/Library/BaseLib/AArch64/SwitchStack.S @@ -40,6 +40,7 @@ InternalSwitchStackAsm ( ); **/ ASM_PFX(InternalSwitchStackAsm): + mov x29, #0 mov x30, x0 mov sp, x3 mov x0, x1