]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S
ArmVirtPkg/PrePi: clear frame pointer in startup code
[mirror_edk2.git] / ArmVirtPkg / PrePi / AArch64 / ModuleEntryPoint.S
index 891cf1fcab400c0842035be6a2fb003bafd63040..99658b9abc7b2cc45fc85539b5edd893cd4ac15d 100644 (file)
@@ -121,6 +121,9 @@ _GetStackBase:
   mov   x1, x21\r
   mov   x2, x22\r
 \r
+  // Set the frame pointer to NULL so any backtraces terminate here\r
+  mov   x29, xzr\r
+\r
   // Jump to PrePiCore C code\r
   //    x0 = MpId\r
   //    x1 = UefiMemoryBase\r