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
This commit is contained in:
Ard Biesheuvel 2014-09-10 18:44:19 +00:00 committed by oliviermartin
parent e5367bfb61
commit 432dc3c135
1 changed files with 1 additions and 1 deletions

View File

@ -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]