diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/nds32/switch.S | 3 | ||||
-rw-r--r-- | core/riscv-rv32i/switch.S | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/nds32/switch.S b/core/nds32/switch.S index b891aeb2a5..631b0e0fe2 100644 --- a/core/nds32/switch.S +++ b/core/nds32/switch.S @@ -8,7 +8,7 @@ #include "config.h" #include "cpu.h" -.text +.section .ram_code /** * Task context switching @@ -73,6 +73,7 @@ __switch_task: /* restore PC and PSW */ iret +.text /** * Start the task scheduling. * diff --git a/core/riscv-rv32i/switch.S b/core/riscv-rv32i/switch.S index d6c00b8591..b7750975fd 100644 --- a/core/riscv-rv32i/switch.S +++ b/core/riscv-rv32i/switch.S @@ -8,7 +8,7 @@ #include "config.h" #include "cpu.h" -.text +.section .ram_code /** * Task context switching @@ -142,6 +142,7 @@ __switch_task: add sp, t3, zero j __irq_exit +.text /** * Start the task scheduling. */ |