diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-13 19:48:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-13 19:48:01 +0000 |
commit | d1f07019094cc1df2c55a19362c71a828c0e4c8e (patch) | |
tree | 5739025c3261fa897634448f539630065fd40d7c /cpukit/rtems/src/taskcreate.c | |
parent | 2007-09-13 Daniel Hellstrom <daniel@gaisler.com> (diff) | |
download | rtems-d1f07019094cc1df2c55a19362c71a828c0e4c8e.tar.bz2 |
2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1259/rtems
* rtems/src/taskcreate.c: Initialize is_global in all cases since
memory is not guaranteed to be zero.
Diffstat (limited to 'cpukit/rtems/src/taskcreate.c')
-rw-r--r-- | cpukit/rtems/src/taskcreate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c index 982ed549d8..99e6628c92 100644 --- a/cpukit/rtems/src/taskcreate.c +++ b/cpukit/rtems/src/taskcreate.c @@ -205,10 +205,9 @@ rtems_status_code rtems_task_create( *id = the_thread->Object.id; #if defined(RTEMS_MULTIPROCESSING) + the_thread->is_global = is_global; if ( is_global ) { - the_thread->is_global = TRUE; - _Objects_MP_Open( &_RTEMS_tasks_Information, the_global_object, |