The exception handling support code appears to adjust the stack pointer in the wrong direction.
It decrements the stack pointer by 0x60, but this should be an increment (add) for the
downward-growing stack.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14646
6f19259b-4bc3-4df7-8a09-
765794883524
\r
str R5, [SP, #0x3c] @ Store it in EFI_SYSTEM_CONTEXT_ARM.PC\r
\r
- sub R1, SP, #0x60 @ We pused 0x60 bytes on the stack \r
+ add R1, SP, #0x60 @ We pushed 0x60 bytes on the stack\r
str R1, [SP, #0x34] @ Store it in EFI_SYSTEM_CONTEXT_ARM.SP\r
\r
@ R0 is ExceptionType \r
\r
str R5, [SP, #0x3c] ; Store it in EFI_SYSTEM_CONTEXT_ARM.PC\r
\r
- sub R1, SP, #0x60 ; We pused 0x60 bytes on the stack \r
+ add R1, SP, #0x60 ; We pushed 0x60 bytes on the stack\r
str R1, [SP, #0x34] ; Store it in EFI_SYSTEM_CONTEXT_ARM.SP\r
\r
; R0 is ExceptionType \r