summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/tasks.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-09-11 16:49:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-09-11 16:49:34 +0000
commitf4631c4794958909f28833b67427b7e25f8a3dd0 (patch)
treea42187533e0009206b64cdd79eeac47630918c1c /cpukit/rtems/src/tasks.c
parent2003-09-09 Ralf Corsepius <ralf_corsepius@rtems.com> (diff)
downloadrtems-f4631c4794958909f28833b67427b7e25f8a3dd0.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 '')
-rw-r--r--cpukit/rtems/src/tasks.c5
1 files changed, 5 insertions, 0 deletions
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;
}