[rtems commit] riscv: Enable robust thread dispatch

Sebastian Huber sebh at rtems.org
Wed Jan 9 09:37:01 UTC 2019


Module:    rtems
Branch:    master
Commit:    b9ffc41c9678fb3c5386c1a6ab394656ec85dbc6
Changeset: http://git.rtems.org/rtems/commit/?id=b9ffc41c9678fb3c5386c1a6ab394656ec85dbc6

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jan  8 09:50:50 2019 +0100

riscv: Enable robust thread dispatch

It must be enabled, since the context switch code does not save/restore
the interrupt status.

Update #3433.

---

 cpukit/score/cpu/riscv/include/rtems/score/cpu.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
index 4a81d0c..fb358e1 100644
--- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
@@ -52,6 +52,9 @@ extern "C" {
 #define CPU_ALL_TASKS_ARE_FP             FALSE
 #define CPU_IDLE_TASK_IS_FP              FALSE
 #define CPU_USE_DEFERRED_FP_SWITCH       FALSE
+
+#define CPU_ENABLE_ROBUST_THREAD_DISPATCH TRUE
+
 #define CPU_STACK_GROWS_UP               FALSE
 
 #define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (64)))



More information about the vc mailing list