summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-09-11 16:44:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-09-11 16:44:41 +0000
commit96dabc34ad9b0a6574be8b7a6c77fefb5a427f13 (patch)
tree023b7201b29a1a2d764d562a793f580a4119be6f /cpukit/rtems
parent2003-09-09 Ralf Corsepius <ralf_corsepius@rtems.com> (diff)
downloadrtems-96dabc34ad9b0a6574be8b7a6c77fefb5a427f13.tar.bz2
2003-09-11 Joel Sherrill <joel@OARcorp.com>
PR 488/rtems * src/taskcreate.c, src/tasks.c: Ensure notepads are zeroed.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/ChangeLog5
-rw-r--r--cpukit/rtems/src/taskcreate.c4
-rw-r--r--cpukit/rtems/src/tasks.c5
3 files changed, 12 insertions, 2 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog
index db0662d034..ebbcb85994 100644
--- a/cpukit/rtems/ChangeLog
+++ b/cpukit/rtems/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-11 Joel Sherrill <joel@OARcorp.com>
+
+ PR 488/rtems
+ * src/taskcreate.c, src/tasks.c: Ensure notepads are zeroed.
+
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/rtems.h, include/rtems/rtems/asr.h,
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index d16f447757..0c6d61b063 100644
--- a/cpukit/rtems/src/taskcreate.c
+++ b/cpukit/rtems/src/taskcreate.c
@@ -45,9 +45,9 @@
* id - pointer to thread id
*
* Output parameters:
- * id - thread id
+ * id - thread id
* RTEMS_SUCCESSFUL - if successful
- * error code - if unsuccessful
+ * error code - if unsuccessful
*/
rtems_status_code rtems_task_create(
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 0501aff431..e9d7954c50 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -45,6 +45,7 @@ boolean _RTEMS_tasks_Create_extension(
)
{
RTEMS_API_Control *api;
+ int i;
api = _Workspace_Allocate( sizeof( RTEMS_API_Control ) );
@@ -56,6 +57,10 @@ boolean _RTEMS_tasks_Create_extension(
api->pending_events = EVENT_SETS_NONE_PENDING;
_ASR_Initialize( &api->Signal );
created->task_variables = NULL;
+
+ for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
+ api->Notepads[i] = 0;
+
return TRUE;
}