Changeset c7744ee0 in rtems


Ignore:
Timestamp:
02/18/98 19:34:51 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7324989
Parents:
bf4cdb70
Message:

Ralf Corsepius noted that there was a dead path in _Thread_Initialize.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/thread.c

    rbf4cdb70 rc7744ee0  
    438438
    439439
    440   if ( !stack ) {
     440  if ( !stack_area ) {
    441441    if ( !_Stack_Is_enough( stack_size ) )
    442442      actual_stack_size = STACK_MINIMUM_SIZE;
     
    444444      actual_stack_size = stack_size;
    445445
    446     actual_stack_size = _Stack_Adjust_size( actual_stack_size );
    447     stack             = stack_area;
    448 
    449     actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
     446    actual_stack_size = _Thread_Stack_Allocate( the_thread, actual_stack_size );
    450447 
    451448    if ( !actual_stack_size )
     
    453450
    454451    stack = the_thread->Start.stack;
    455 
    456452    the_thread->Start.core_allocated_stack = TRUE;
    457453  } else {
  • cpukit/score/src/thread.c

    rbf4cdb70 rc7744ee0  
    438438
    439439
    440   if ( !stack ) {
     440  if ( !stack_area ) {
    441441    if ( !_Stack_Is_enough( stack_size ) )
    442442      actual_stack_size = STACK_MINIMUM_SIZE;
     
    444444      actual_stack_size = stack_size;
    445445
    446     actual_stack_size = _Stack_Adjust_size( actual_stack_size );
    447     stack             = stack_area;
    448 
    449     actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
     446    actual_stack_size = _Thread_Stack_Allocate( the_thread, actual_stack_size );
    450447 
    451448    if ( !actual_stack_size )
     
    453450
    454451    stack = the_thread->Start.stack;
    455 
    456452    the_thread->Start.core_allocated_stack = TRUE;
    457453  } else {
Note: See TracChangeset for help on using the changeset viewer.