Commit 016e1577 authored by Russell King's avatar Russell King

[ARM] Ensure we preserve other CPSR bits when switching to SVC mode.

parent 5a236669
...@@ -1028,8 +1028,10 @@ vector_IRQ: @ ...@@ -1028,8 +1028,10 @@ vector_IRQ: @
@ @
@ now branch to the relevant MODE handling routine @ now branch to the relevant MODE handling routine
@ @
mov r13, #PSR_I_BIT | MODE_SVC mrs r13, cpsr
msr spsr_c, r13 @ switch to SVC_32 mode bic r13, r13, #MODE_MASK
orr r13, r13, #MODE_SVC
msr spsr, r13 @ switch to SVC_32 mode
and lr, lr, #15 and lr, lr, #15
ldr lr, [pc, lr, lsl #2] ldr lr, [pc, lr, lsl #2]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment