use better calling convention

This commit is contained in:
Corwin Kuiper 2021-06-23 23:33:32 +01:00
parent 086a4385be
commit f54a539296

View file

@ -23,9 +23,8 @@ InterruptHandlerSimple:
@ call the rust interrupt handler with r0 set to the triggered interrupts @ call the rust interrupt handler with r0 set to the triggered interrupts
ldr r1, =__RUST_INTERRUPT_HANDLER ldr r1, =__RUST_INTERRUPT_HANDLER
push {lr, r4-r11} push {lr, r4-r11}
adr lr, .IReturn mov lr, pc
bx r1 bx r1
.IReturn:
pop {lr, r4-r11} pop {lr, r4-r11}
@ change back to interrupt mode @ change back to interrupt mode