diff options
Diffstat (limited to 'os/common')
-rw-r--r-- | os/common/ports/ARM/compilers/GCC/irq.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/os/common/ports/ARM/compilers/GCC/irq.s b/os/common/ports/ARM/compilers/GCC/irq.s index 8ad50ea36..8490beb8c 100644 --- a/os/common/ports/ARM/compilers/GCC/irq.s +++ b/os/common/ports/ARM/compilers/GCC/irq.s @@ -43,6 +43,13 @@ IrqHandler: ldr lr, =_port_irq_common
bx r0
+ .weak _port_irq_common
+_port_irq_common:
+ // This exit sequence is usually replaced by the RTOS
+ // specific one.
+ ldmfd sp!, {r0-r3, r12, lr}
+ subs pc, lr, #4
+
#endif
/** @} */
|