diff options
Diffstat (limited to 'core/nds32/switch.S')
-rw-r--r-- | core/nds32/switch.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/nds32/switch.S b/core/nds32/switch.S index 8696ef5f00..b891aeb2a5 100644 --- a/core/nds32/switch.S +++ b/core/nds32/switch.S @@ -81,6 +81,11 @@ __switch_task: */ .global __task_start __task_start: + /* + * Disable global interrupt here to ensure below sequence won't be + * broken. The "iret" instruction of ISR will enable GIE again. + */ + setgie.d /* area used as thread stack for the first switch */ la $r3, scratchpad |