IFAR 0x50\r
\r
LR 0x54 # SVC Link register (we need to restore it)\r
- \r
+\r
LR 0x58 # pushed by srsfd\r
CPSR 0x5c\r
\r
stmfd SP!,{LR} ; Store the link register for the current mode\r
sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR\r
stmfd SP!,{R0-R12} ; Store the register state\r
- \r
+\r
mov R0,#0 ; ExceptionType\r
ldr R1,CommonExceptionEntry\r
bx R1\r
ldr R5, [SP, #0x58] ; PC is the LR pushed by srsfd\r
; Check to see if we have to adjust for Thumb entry\r
sub r4, r0, #1 ; if (ExceptionType == 1 || ExceptionType ==2)) {\r
- cmp r4, #1 ; // UND & SVC have differnt LR adjust for Thumb\r
+ cmp r4, #1 ; // UND & SVC have different LR adjust for Thumb\r
bhi NoAdjustNeeded\r
\r
tst r1, #0x20 ; if ((CPSR & T)) == T) { // Thumb Mode on entry\r