summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-18 19:34:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-18 19:34:51 +0000
commitc7744ee03b1b3b2efdb952dadd0727dba4b32d6a (patch)
tree131767a989db32bf3044232f54aaba2fd24bf0e8 /cpukit/score/src
parentPatch from Chris Johns to add the interrupt class destructure. (diff)
downloadrtems-c7744ee03b1b3b2efdb952dadd0727dba4b32d6a.tar.bz2
Ralf Corsepius noted that there was a dead path in _Thread_Initialize.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/thread.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c
index a931a270df..b5c96dcfb3 100644
--- a/cpukit/score/src/thread.c
+++ b/cpukit/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;