summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-15 11:09:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 07:18:35 +0100
commit1ada3e55f695f77452bd4eb6ebb5d7a4054e1edf (patch)
tree2983bb496f6674cc1d6204d21fdca257580f1eeb /cpukit/rtems
parentlibio: Add POSIX user environment pointer to TCB (diff)
downloadrtems-1ada3e55f695f77452bd4eb6ebb5d7a4054e1edf.tar.bz2
score: Add _SMP_Need_inter_processor_interrupts()
Test for the proper system condition instead of using the rtems_configuration_is_smp_enabled() workaround. Update #3876.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/src/taskmode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c
index 906f86bdcd..8830f6bb5d 100644
--- a/cpukit/rtems/src/taskmode.c
+++ b/cpukit/rtems/src/taskmode.c
@@ -23,6 +23,7 @@
#include <rtems/rtems/modesimpl.h>
#include <rtems/rtems/signalimpl.h>
#include <rtems/score/schedulerimpl.h>
+#include <rtems/score/smpimpl.h>
#include <rtems/score/threadimpl.h>
#include <rtems/config.h>
@@ -58,7 +59,7 @@ rtems_status_code rtems_task_mode(
( mask & RTEMS_INTERRUPT_MASK ) != 0
&& _Modes_Get_interrupt_level( mode_set ) != 0
#if CPU_ENABLE_ROBUST_THREAD_DISPATCH == FALSE
- && rtems_configuration_is_smp_enabled()
+ && _SMP_Need_inter_processor_interrupts()
#endif
) {
return RTEMS_NOT_IMPLEMENTED;