summaryrefslogtreecommitdiff
path: root/ArmPkg/Library/ArmSmcLib
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-09-10 18:44:19 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-10 18:44:19 +0000
commit432dc3c1355dd0b514a052b01ca75254fef523fd (patch)
tree03f4fdc32285dd5a0a7f053e85d7ee4c4c9d94b4 /ArmPkg/Library/ArmSmcLib
parente5367bfb614f9d4b56f3cf5d8fd16f367d0ea86d (diff)
downloadedk2-platforms-432dc3c1355dd0b514a052b01ca75254fef523fd.tar.xz
ArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper
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
Diffstat (limited to 'ArmPkg/Library/ArmSmcLib')
-rw-r--r--ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.asm b/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.asm
index ad55ae7752..50580f726d 100644
--- a/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.asm
+++ b/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.asm
@@ -18,7 +18,7 @@
ArmCallSmc
push {r4-r8}
// r0 will be popped just after the SMC call
- pop {r0}
+ push {r0}
// Load the SMC arguments values into the appropriate registers
ldr r7, [r0, #28]