summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-08 08:50:50 (UTC)
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-09 09:36:02 (UTC)
commitb9ffc41c9678fb3c5386c1a6ab394656ec85dbc6 (patch)
tree135cb3a1136be3695caff41a931ebe997a8337c8
parent3bd3999936cfa8a77a545e513669e61877f9ccb6 (diff)
downloadrtems-b9ffc41c9678fb3c5386c1a6ab394656ec85dbc6.tar.bz2
riscv: Enable robust thread dispatch
It must be enabled, since the context switch code does not save/restore the interrupt status. Update #3433.
-rw-r--r--cpukit/score/cpu/riscv/include/rtems/score/cpu.h3
1 files changed, 3 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 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)))