summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/riscv
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/riscv')
-rw-r--r--cpukit/score/cpu/riscv/include/rtems/score/cpu.h5
-rw-r--r--cpukit/score/cpu/riscv/riscv-context-switch.S2
2 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
index 38eb92394d..a44b815b12 100644
--- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
@@ -383,6 +383,11 @@ void _CPU_Context_switch(
Context_Control *heir
);
+RTEMS_NO_RETURN void _CPU_Context_switch_no_return(
+ Context_Control *executing,
+ Context_Control *heir
+);
+
/*
* _CPU_Context_restore
*
diff --git a/cpukit/score/cpu/riscv/riscv-context-switch.S b/cpukit/score/cpu/riscv/riscv-context-switch.S
index 96c117b3de..830f8629a4 100644
--- a/cpukit/score/cpu/riscv/riscv-context-switch.S
+++ b/cpukit/score/cpu/riscv/riscv-context-switch.S
@@ -37,9 +37,11 @@
.align 2
PUBLIC(_CPU_Context_switch)
+PUBLIC(_CPU_Context_switch_no_return)
PUBLIC(_CPU_Context_restore)
SYM(_CPU_Context_switch):
+SYM(_CPU_Context_switch_no_return):
GET_SELF_CPU_CONTROL a2
lw a3, PER_CPU_ISR_DISPATCH_DISABLE(a2)