summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-13 19:47:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-13 19:47:41 +0000
commit96b6f1115dfde94f036d1e961c1c27b3ef10c011 (patch)
tree95943a85976af87cf9d5576243eb22cd794c56e8
parentb7aa65139c73e49878ca431bcfc4a3695d9ec2c4 (diff)
2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1259/rtems * src/taskcreate.c: Initialize is_global in all cases since memory is not guaranteed to be zero.
-rw-r--r--cpukit/rtems/ChangeLog6
-rw-r--r--cpukit/rtems/src/taskcreate.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog
index 711f81f97d..18e3408cb3 100644
--- a/cpukit/rtems/ChangeLog
+++ b/cpukit/rtems/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1259/rtems
+ * src/taskcreate.c: Initialize is_global in all cases since memory is
+ not guaranteed to be zero.
+
2006-09-08 Ken Peters <ken.peters@jpl.nasa.gov>
PR 1170/rtems
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index 8d55f4cf4d..9f469f8c40 100644
--- a/cpukit/rtems/src/taskcreate.c
+++ b/cpukit/rtems/src/taskcreate.c
@@ -201,10 +201,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,