summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-13 19:47:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-13 19:47:51 +0000
commitcb53c32c406974d4f3070299f61e3fb564898741 (patch)
treefa24996cc51c9a97d8235e77da17ef981716c312
parent2007-09-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-cb53c32c406974d4f3070299f61e3fb564898741.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.
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/rtems/src/taskcreate.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 574f164f33..55c2159cdb 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2007-09-12 Sergei Organov <osv@javad.com>
PR 1258/rtems
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,