The Link Register (LR) does not need adjustement when receiving a Supervisor Call (SVC).
Note: SVC might be generated by debuggers.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14911
6f19259b-4bc3-4df7-8a09-
765794883524
bx R1\r
\r
ASM_PFX(SoftwareInterruptEntry):\r
- sub LR, LR, #4 @ Only -2 for Thumb, adjust in CommonExceptionEntry\r
srsdb #0x13! @ Store return state on SVC stack\r
@ We are already in SVC mode\r
stmfd SP!,{LR} @ Store the link register for the current mode\r
bx R1\r
\r
SoftwareInterruptEntry\r
- sub LR, LR, #4 ; Only -2 for Thumb, adjust in CommonExceptionEntry\r
srsfd #0x13! ; Store return state on SVC stack\r
; We are already in SVC mode\r
stmfd SP!,{LR} ; Store the link register for the current mode\r