]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmVirtPkg/PrePi/Arm/ModuleEntryPoint.S
ArmVirtPkg/PrePi: use correct callee saved regs
[mirror_edk2.git] / ArmVirtPkg / PrePi / Arm / ModuleEntryPoint.S
index 441db36857de85cc651a129e2302bff138cac203..3215c7d55876bc9478a9d9c0156c967cb051b67a 100644 (file)
@@ -154,17 +154,17 @@ _GetStackBase:
   // r1 = The top of the Mpcore Stacks\r
   // Stack for the primary core = PrimaryCoreStack\r
   LoadConstantToReg (FixedPcdGet32(PcdCPUCorePrimaryStackSize), r2)\r
-  sub   r12, r1, r2\r
+  sub   r9, r1, r2\r
 \r
   // Stack for the secondary core = Number of Cores - 1\r
   LoadConstantToReg (FixedPcdGet32(PcdCoreCount), r0)\r
   sub   r0, r0, #1\r
   LoadConstantToReg (FixedPcdGet32(PcdCPUCoreSecondaryStackSize), r1)\r
   mul   r1, r1, r0\r
-  sub   r12, r12, r1\r
+  sub   r9, r9, r1\r
 \r
-  // r12 = The base of the MpCore Stacks (primary stack & secondary stacks)\r
-  mov   r0, r12\r
+  // r9 = The base of the MpCore Stacks (primary stack & secondary stacks)\r
+  mov   r0, r9\r
   mov   r1, r10\r
   //ArmPlatformStackSet(StackBase, MpId, PrimaryStackSize, SecondaryStackSize)\r
   LoadConstantToReg (FixedPcdGet32(PcdCPUCorePrimaryStackSize), r2)\r
@@ -180,7 +180,7 @@ _GetStackBase:
 _PrepareArguments:\r
   mov   r0, r10\r
   mov   r1, r11\r
-  mov   r2, r12\r
+  mov   r2, r9\r
 \r
   // Move sec startup address into a data register\r
   // Ensure we're jumping to FV version of the code (not boot remapped alias)\r