Fix potential bugs in the exception handlers

This commit is contained in:
TuxSH
2016-06-18 13:10:07 +02:00
parent fcb8edffdf
commit a9db998d84
4 changed files with 35 additions and 35 deletions

View File

@@ -36,7 +36,7 @@ _commonHandler:
orr r5, r4
msr cpsr_c, r5 @ change processor mode
stmfd r6!, {r8-lr}
msr cpsr_c, r3 @ restore processor mode
msr cpsr_cx, r3 @ restore processor mode
mov sp, r6
stmfd sp!, {r2,lr} @ it's a bit of a mess, but we will fix that later