diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-02-18 19:34:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-02-18 19:34:51 +0000 |
commit | c7744ee03b1b3b2efdb952dadd0727dba4b32d6a (patch) | |
tree | 131767a989db32bf3044232f54aaba2fd24bf0e8 /c/src/exec/score/src/thread.c | |
parent | Patch from Chris Johns to add the interrupt class destructure. (diff) | |
download | rtems-c7744ee03b1b3b2efdb952dadd0727dba4b32d6a.tar.bz2 |
Ralf Corsepius noted that there was a dead path in _Thread_Initialize.
Diffstat (limited to 'c/src/exec/score/src/thread.c')
-rw-r--r-- | c/src/exec/score/src/thread.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/c/src/exec/score/src/thread.c b/c/src/exec/score/src/thread.c index a931a270df..b5c96dcfb3 100644 --- a/c/src/exec/score/src/thread.c +++ b/c/src/exec/score/src/thread.c @@ -437,22 +437,18 @@ boolean _Thread_Initialize( */ - if ( !stack ) { + if ( !stack_area ) { if ( !_Stack_Is_enough( stack_size ) ) actual_stack_size = STACK_MINIMUM_SIZE; else actual_stack_size = stack_size; - actual_stack_size = _Stack_Adjust_size( actual_stack_size ); - stack = stack_area; - - actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); + actual_stack_size = _Thread_Stack_Allocate( the_thread, actual_stack_size ); if ( !actual_stack_size ) return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; - the_thread->Start.core_allocated_stack = TRUE; } else { stack = stack_area; |