summaryrefslogtreecommitdiff
path: root/core/nds32/init.S
diff options
context:
space:
mode:
Diffstat (limited to 'core/nds32/init.S')
-rw-r--r--core/nds32/init.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/nds32/init.S b/core/nds32/init.S
index 1f0b5c28e6..1f9c71b3c6 100644
--- a/core/nds32/init.S
+++ b/core/nds32/init.S
@@ -20,13 +20,13 @@ __entry_\()\name:
smw.adm $r15, [$sp], $r15, 0xb
/* r0-r5 are caller saved */
smw.adm $r0, [$sp], $r5, 0
- /* isr entry */
- jal start_irq_handler
/* switch to system stack if we are called from process stack */
la $r3, stack_end
mov55 $fp, $sp
slt45 $r3, $sp /* if sp > end of system stack, then r15 = 1 and */
cmovn $sp, $r3, $r15 /* point sp to the top of the system stack */
+ /* isr entry */
+ jal start_irq_handler
/* C routine handler */
jal \name\()_handler
/* check whether we need to change the scheduled task */