From 432dc3c1355dd0b514a052b01ca75254fef523fd Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Wed, 10 Sep 2014 18:44:19 +0000 Subject: 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 Reviewed-by: Olivier Martin 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ArmPkg') 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] -- cgit v1.2.3