mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2003-09-11 Joel Sherrill <joel@OARcorp.com>
PR 488/rtems * src/taskcreate.c, src/tasks.c: Ensure notepads are zeroed.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user