diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-09-23 16:41:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-09-23 16:41:00 +0000 |
commit | ecc3fe3181d82cdb85ddb90c92408c7cb7390504 (patch) | |
tree | 692d30f0895c15e3858a8fc2403d5378d649d617 /cpukit/score/src | |
parent | Modifed to zero out the C heap if the CPU Table indicates that the (diff) | |
download | rtems-ecc3fe3181d82cdb85ddb90c92408c7cb7390504.tar.bz2 |
IDLE task stack size now specified as a field in the CPU Table for all
ports.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/thread.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index b5c96dcfb3..4e44ac6f75 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -107,7 +107,8 @@ void _Thread_Handler_initialization( void _Thread_Create_idle( void ) { - void *idle; + void *idle; + unsigned32 idle_task_stack_size; /* * The entire workspace is zeroed during its initialization. Thus, all @@ -130,11 +131,15 @@ void _Thread_Create_idle( void ) if ( _CPU_Table.idle_task ) idle = _CPU_Table.idle_task; + idle_task_stack_size = _CPU_Table.idle_task_stack_size; + if ( idle_task_stack_size < STACK_MINIMUM_SIZE ) + idle_task_stack_size = STACK_MINIMUM_SIZE; + _Thread_Initialize( &_Thread_Internal_information, _Thread_Idle, NULL, /* allocate the stack */ - THREAD_IDLE_STACK_SIZE, + idle_task_stack_size, CPU_IDLE_TASK_IS_FP, PRIORITY_MAXIMUM, TRUE, /* preemptable */ |