]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.asm
ArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper
[mirror_edk2.git] / ArmPkg / Library / ArmSmcLib / Arm / ArmSmc.asm
index ad55ae7752af8b29f7619cbdbb1d7a465f624c65..50580f726dfb487d1604e68e2c4f33c9ad6b659c 100644 (file)
@@ -18,7 +18,7 @@
 ArmCallSmc\r
     push    {r4-r8}\r
     // r0 will be popped just after the SMC call\r
-    pop     {r0}\r
+    push     {r0}\r
 \r
     // Load the SMC arguments values into the appropriate registers\r
     ldr     r7, [r0, #28]\r