mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Fix Cortex-M0 assembly error when the interrupt stack is enabled
This commit is contained in:
committed by
Gregory Nutt
parent
567b4ff6a4
commit
a5eb02e2d0
@@ -152,7 +152,8 @@ exception_common:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_ARCH_INTERRUPTSTACK > 3
|
#if CONFIG_ARCH_INTERRUPTSTACK > 3
|
||||||
ldr sp, =g_intstackbase
|
ldr r7, =g_intstackbase /* R7=Base of the interrupt stack */
|
||||||
|
mov sp, r7 /* Set the new stack point */
|
||||||
push {r1} /* Save the MSP on the interrupt stack */
|
push {r1} /* Save the MSP on the interrupt stack */
|
||||||
bl up_doirq /* R0=IRQ, R1=register save area on stack */
|
bl up_doirq /* R0=IRQ, R1=register save area on stack */
|
||||||
pop {r1} /* Recover R1=main stack pointer */
|
pop {r1} /* Recover R1=main stack pointer */
|
||||||
|
|||||||
Reference in New Issue
Block a user