]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 10 Sep 2014 18:44:19 +0000 (18:44 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Sep 2014 18:44:19 +0000 (18:44 +0000)
This fixes a bug in the stack handling in the RVCT .asm version
of the SMC wrapper.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16086 6f19259b-4bc3-4df7-8a09-765794883524

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