diff options
Diffstat (limited to 'cpukit/rtems/src/taskcreate.c')
-rw-r--r-- | cpukit/rtems/src/taskcreate.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c index 288eafa5c7..b430d3c705 100644 --- a/cpukit/rtems/src/taskcreate.c +++ b/cpukit/rtems/src/taskcreate.c @@ -111,15 +111,11 @@ rtems_status_code rtems_task_create( } #if defined(RTEMS_MULTIPROCESSING) - if ( _Attributes_Is_global( the_attribute_set ) ) { - - is_global = true; - - if ( !_System_state_Is_multiprocessing ) - return RTEMS_MP_NOT_CONFIGURED; + if ( !_System_state_Is_multiprocessing ) { + the_attribute_set = _Attributes_Clear( the_attribute_set, RTEMS_GLOBAL ); + } - } else - is_global = false; + is_global = _Attributes_Is_global( the_attribute_set ); #endif /* |