summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-20 11:13:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-20 12:07:07 +0200
commit8ff5916c2f0b9cc8d62ca99d1422ad7be4cccf27 (patch)
tree2d663f7c657e87cbc203114fb42b4e1dc7c1500b
parentconfig: SMP only CONFIGURE_MAXIMUM_PROCESSORS (diff)
downloadrtems-8ff5916c2f0b9cc8d62ca99d1422ad7be4cccf27.tar.bz2
stackchk: Remove dead code
Update #3459.
-rw-r--r--cpukit/include/rtems/stackchk.h4
-rw-r--r--cpukit/libmisc/stackchk/check.c24
2 files changed, 2 insertions, 26 deletions
diff --git a/cpukit/include/rtems/stackchk.h b/cpukit/include/rtems/stackchk.h
index 16fc4f9b9d..eb81bb827e 100644
--- a/cpukit/include/rtems/stackchk.h
+++ b/cpukit/include/rtems/stackchk.h
@@ -127,8 +127,8 @@ void rtems_stack_checker_switch_extension(
rtems_stack_checker_switch_extension, /* task_switch */ \
0, /* task_begin */ \
0, /* task_exitted */ \
- 0 /* rtems_stack_checker_fatal_extension */, /* fatal */ \
- 0, /* terminate */ \
+ 0, /* fatal */ \
+ 0 /* terminate */ \
}
#ifdef __cplusplus
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index d19fef4dcf..4643e7601a 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -27,15 +27,6 @@
#include <rtems.h>
#include <inttypes.h>
-/*
- * The stack dump information may be printed by a "fatal" extension.
- * Fatal extensions only get called via rtems_fatal_error_occurred()
- * and not when rtems_shutdown_executive() is called.
- * When that happens, this #define should be deleted and all the code
- * it marks.
- */
-#define DONT_USE_FATAL_EXTENSION
-
#include <string.h>
#include <stdlib.h>
@@ -426,21 +417,6 @@ static bool Stack_check_Dump_threads_usage(
}
/*
- * rtems_stack_checker_fatal_extension
- */
-#ifndef DONT_USE_FATAL_EXTENSION
- void rtems_stack_checker_fatal_extension(
- Internal_errors_Source source,
- bool always_set_to_false,
- uint32_t status
- )
- {
- if (status == 0)
- rtems_stack_checker_report_usage();
- }
-#endif
-
-/*
* rtems_stack_checker_report_usage
*/