Changeset 8ff5916c in rtems


Ignore:
Timestamp:
Jun 20, 2018, 9:13:19 AM (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1cb2e748
Parents:
cc3edaa
git-author:
Sebastian Huber <sebastian.huber@…> (06/20/18 09:13:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/20/18 10:07:07)
Message:

stackchk: Remove dead code

Update #3459.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/stackchk.h

    rcc3edaa r8ff5916c  
    128128  0,                                           /* task_begin   */ \
    129129  0,                                           /* task_exitted */ \
    130   0 /* rtems_stack_checker_fatal_extension */, /* fatal        */ \
    131   0,                                           /* terminate    */ \
     130  0,                                          /* fatal        */ \
     131  0                                            /* terminate    */ \
    132132}
    133133
  • cpukit/libmisc/stackchk/check.c

    rcc3edaa r8ff5916c  
    2727#include <rtems.h>
    2828#include <inttypes.h>
    29 
    30 /*
    31  * The stack dump information may be printed by a "fatal" extension.
    32  * Fatal extensions only get called via rtems_fatal_error_occurred()
    33  * and not when rtems_shutdown_executive() is called.
    34  * When that happens, this #define should be deleted and all the code
    35  * it marks.
    36  */
    37 #define DONT_USE_FATAL_EXTENSION
    3829
    3930#include <string.h>
     
    427418
    428419/*
    429  *  rtems_stack_checker_fatal_extension
    430  */
    431 #ifndef DONT_USE_FATAL_EXTENSION
    432   void rtems_stack_checker_fatal_extension(
    433     Internal_errors_Source  source,
    434     bool                    always_set_to_false,
    435     uint32_t                status
    436   )
    437   {
    438     if (status == 0)
    439       rtems_stack_checker_report_usage();
    440   }
    441 #endif
    442 
    443 /*
    444420 *  rtems_stack_checker_report_usage
    445421 */
Note: See TracChangeset for help on using the changeset viewer.