summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-08 08:36:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-09 10:35:24 +0100
commit38cb59ee0b8f3b55ad3277bbf24b5fd1caa88603 (patch)
treee231c4f8a441db1a7fe67f9b5719747dba11ecf0 /cpukit/score
parenttests: Remove bogus RTEMS_INTERRUPT_LEVEL(31) (diff)
downloadrtems-38cb59ee0b8f3b55ad3277bbf24b5fd1caa88603.tar.bz2
Separate task mode checks
Update #3000.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/src/threadinitialize.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index c15731f99c..2ad4ccd9ed 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -58,15 +58,18 @@ bool _Thread_Initialize(
size_t scheduler_index;
Per_CPU_Control *cpu = _Per_CPU_Get_by_index( 0 );
-#if defined( RTEMS_SMP )
- if ( rtems_configuration_is_smp_enabled() ) {
- if ( !is_preemptible ) {
- return false;
- }
+#if defined(RTEMS_SMP)
+ if ( !is_preemptible && rtems_configuration_is_smp_enabled() ) {
+ return false;
+ }
+#endif
- if ( isr_level != 0 ) {
- return false;
- }
+#if defined(RTEMS_SMP)
+ if (
+ isr_level != 0
+ && rtems_configuration_is_smp_enabled()
+ ) {
+ return false;
}
#endif