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