Changeset 937ec60 in rtems


Ignore:
Timestamp:
Sep 1, 2008, 9:12:43 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
ab93177
Parents:
36a150e9
Message:

Convert to using "bool".

Location:
cpukit/libmisc/stackchk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/stackchk/check.c

    r36a150e9 r937ec60  
    5757 * NOTE: This uses a GCC specific method.
    5858 */
    59 static inline boolean Stack_check_Frame_pointer_in_range(
     59static inline bool Stack_check_Frame_pointer_in_range(
    6060  Stack_Control *the_stack
    6161)
     
    6565  #if defined(__GNUC__)
    6666    if ( sp < the_stack->area ) {
    67       return FALSE;
     67      return false;
    6868    }
    6969    if ( sp > (the_stack->area + the_stack->size) ) {
    70       return FALSE;
     70      return false;
    7171    }
    7272  #else
    7373    #error "How do I check stack bounds on a non-GNU compiler?"
    7474  #endif
    75   return TRUE;
     75  return true;
    7676}
    7777
     
    167167 *  rtems_stack_checker_create_extension
    168168 */
    169 boolean rtems_stack_checker_create_extension(
     169bool rtems_stack_checker_create_extension(
    170170  Thread_Control *running,
    171171  Thread_Control *the_thread
     
    177177    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);
    178178
    179   return TRUE;
     179  return true;
    180180}
    181181
     
    208208void Stack_check_report_blown_task(
    209209  Thread_Control *running,
    210   boolean         pattern_ok
     210  bool         pattern_ok
    211211)
    212212{
     
    239239  if ( !pattern_ok ) {
    240240    printk(
    241       "  Damaged pattern begins at 0x%08lx and is %ld bytes long\n",
     241      "  Damaged pattern begins at 0x%08lx and is %zd bytes long\n",
    242242      (unsigned long) Stack_check_Get_pattern_area(stack),
    243       (long) PATTERN_SIZE_BYTES);
     243      PATTERN_SIZE_BYTES);
    244244  }
    245245
     
    257257  Stack_Control *the_stack = &running->Start.Initial_stack;
    258258  void          *pattern;
    259   boolean        sp_ok;
    260   boolean        pattern_ok = TRUE;
     259  bool        sp_ok;
     260  bool        pattern_ok = true;
    261261
    262262  pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
     
    278278 *  Check if blown
    279279 */
    280 boolean rtems_stack_checker_is_blown( void )
     280bool rtems_stack_checker_is_blown( void )
    281281{
    282282  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
    283   boolean        sp_ok;
    284   boolean        pattern_ok = TRUE;
     283  bool           sp_ok;
     284  bool           pattern_ok = true;
    285285
    286286  /*
     
    303303
    304304  /*
    305    * The Stack Pointer and the Pattern Area are OK so return FALSE.
     305   * The Stack Pointer and the Pattern Area are OK so return false.
    306306   */
    307307  if ( sp_ok && pattern_ok )
    308     return FALSE;
     308    return false;
    309309
    310310  /*
     
    312312   */
    313313  Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
    314   return TRUE;
     314  return true;
    315315}
    316316
     
    441441  void rtems_stack_checker_fatal_extension(
    442442    Internal_errors_Source  source,
    443     boolean                 is_internal,
     443    bool                    is_internal,
    444444    uint32_t                status
    445445  )
  • cpukit/libmisc/stackchk/internal.h

    r36a150e9 r937ec60  
    5050 */
    5151
    52 boolean rtems_stack_checker_create_extension(
     52bool rtems_stack_checker_create_extension(
    5353  Thread_Control *running,
    5454  Thread_Control *the_thread
     
    7878void rtems_stack_checker_fatal_extension(
    7979    Internal_errors_Source  source,
    80     boolean                 is_internal,
     80    bool                    is_internal,
    8181    uint32_t                status
    8282);
  • cpukit/libmisc/stackchk/stackchk.h

    r36a150e9 r937ec60  
    3434 *
    3535 */
    36 boolean rtems_stack_checker_is_blown( void );
     36bool rtems_stack_checker_is_blown( void );
    3737
    3838/** @brief Print Stack Usage Report
     
    7676 *       will automatically intialize itself.
    7777 */
    78 boolean rtems_stack_checker_create_extension(
     78bool rtems_stack_checker_create_extension(
    7979  Thread_Control *running,
    8080  Thread_Control *the_thread
Note: See TracChangeset for help on using the changeset viewer.