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, 4 insertions, 0 deletions
diff --git a/core/nds32/init.S b/core/nds32/init.S
index a27fcd8d0e..d5d93d299b 100644
--- a/core/nds32/init.S
+++ b/core/nds32/init.S
@@ -20,6 +20,8 @@ __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
@@ -30,6 +32,8 @@ __entry_\()\name:
/* check whether we need to change the scheduled task */
lwi.gp $r2, [ + need_resched]
bnez $r2, __switch_task
+ /* isr exit */
+ jal end_irq_handler
/* restore r0-r5 */
lmw.bim $r0, [$fp], $r5, 0
/* restore r15, fp, lp and sp */