Changeset da9b538 in rtems


Ignore:
Timestamp:
Jun 23, 2010, 11:28:46 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
d290bbb
Parents:
ef08dc1
Message:

2010-06-23 Joel Sherrill <joel.sherrilL@…>

  • libmisc/stackchk/check.c: More clean up and coverage improvements..
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ref08dc1 rda9b538  
     12010-06-23      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * libmisc/stackchk/check.c: More clean up and coverage improvements..
     4
    152010-06-23      Joel Sherrill <joel.sherrilL@OARcorp.com>
    26
  • cpukit/libmisc/stackchk/check.c

    ref08dc1 rda9b538  
    144144  };
    145145
    146   if (Stack_check_Initialized)
    147146    return;
    148147
     
    165164                                  (char *) _CPU_Interrupt_stack_low;
    166165      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
    167   }
     166   }
    168167  #endif
    169168
     
    213212 *        the following message out.
    214213 */
     214void Stack_check_report_blown_task(
     215  Thread_Control *running,
     216  bool pattern_ok
     217) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     218
    215219void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
    216220{
     
    312316  }
    313317
     318
     319  /*
     320   * Let's report as much as we can.
     321   */
     322  if ( !sp_ok || !pattern_ok ) {
     323    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
     324    /* DOES NOT RETURN */
     325  }
     326
    314327  /*
    315328   * The Stack Pointer and the Pattern Area are OK so return false.
    316329   */
    317   if ( sp_ok && pattern_ok )
    318     return false;
    319 
    320   /*
    321    * Let's report as much as we can.
    322    */
    323   Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
    324   return true;
     330  return false;
    325331}
    326332
     
    328334 * Stack_check_find_high_water_mark
    329335 */
    330 void *Stack_check_find_high_water_mark(
     336static inline void *Stack_check_find_high_water_mark(
    331337  const void *s,
    332338  size_t      n
     
    491497  print_context = NULL;
    492498  print_handler = NULL;
    493 
    494499}
    495500
Note: See TracChangeset for help on using the changeset viewer.