Changeset a12f7e9 in rtems


Ignore:
Timestamp:
Nov 14, 2012, 2:10:46 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d3b0fe08
Parents:
a0c7aa55
git-author:
Sebastian Huber <sebastian.huber@…> (11/14/12 14:10:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/12 14:33:13)
Message:

score: Add RTEMS_FATAL_SOURCE_STACK_CHECKER

Files:
3 edited

Legend:

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

    ra0c7aa55 ra12f7e9  
    261261  #endif
    262262
    263   rtems_fatal_error_occurred(0x81);
     263  rtems_fatal(
     264    RTEMS_FATAL_SOURCE_STACK_CHECKER,
     265    running->Object.name.name_u32
     266  );
    264267}
    265268
  • cpukit/score/include/rtems/score/interr.h

    ra0c7aa55 ra12f7e9  
    9090   */
    9191  RTEMS_FATAL_SOURCE_ASSERT,
     92
     93  /**
     94   * @brief Fatal source of the stack checker.
     95   *
     96   * The fatal code is the object name of the executing task.
     97   */
     98  RTEMS_FATAL_SOURCE_STACK_CHECKER,
    9299
    93100  /**
  • testsuites/libtests/stackchk/init.c

    ra0c7aa55 ra12f7e9  
    8989void Fatal_extension( uint32_t source, bool is_internal, uint32_t error )
    9090{
    91   if ( source != INTERNAL_ERROR_RTEMS_API ) {
     91  if ( source != RTEMS_FATAL_SOURCE_STACK_CHECKER ) {
    9292    printk( "unexpected fatal source\n" );
    9393  } else if ( is_internal ) {
    9494    printk( "unexpected fatal is internal\n" );
    95   } else if ( error != 0x81 ) {
     95  } else if ( error != rtems_build_name( 'T', 'A', '1', ' ' ) ) {
    9696    printk( "unexpected fatal error\n" );
    9797  } else {
    9898    printk( "*** END OF TEST STACK CHECKER ***\n" );
    9999  }
    100 
    101   if ( _System_state_Is_up( _System_state_Get() ) )
    102     _Thread_Stop_multitasking();
    103100}
Note: See TracChangeset for help on using the changeset viewer.