[PATCH 5/7] stackchk: Add RTEMS_SYSINIT_ISR_STACK

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Dec 16 12:42:10 UTC 2019


Use a dedicated system initialization step for the stack checker
interrupt stack support.

Update #3838.
---
 cpukit/include/rtems/sysinit.h  | 1 +
 cpukit/libmisc/stackchk/check.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cpukit/include/rtems/sysinit.h b/cpukit/include/rtems/sysinit.h
index ae599fd845..60ea2b8d68 100644
--- a/cpukit/include/rtems/sysinit.h
+++ b/cpukit/include/rtems/sysinit.h
@@ -28,6 +28,7 @@ extern "C" {
  */
 #define RTEMS_SYSINIT_RECORD                     000100
 #define RTEMS_SYSINIT_BSP_EARLY                  000140
+#define RTEMS_SYSINIT_ISR_STACK                  000200
 #define RTEMS_SYSINIT_BSP_WORK_AREAS             000200
 #define RTEMS_SYSINIT_BSP_START                  000300
 #define RTEMS_SYSINIT_CPU_COUNTER                000400
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 3b8cf69a12..eec3a911aa 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -513,6 +513,6 @@ static void Stack_check_Prepare_interrupt_stacks( void )
 
 RTEMS_SYSINIT_ITEM(
   Stack_check_Prepare_interrupt_stacks,
-  RTEMS_SYSINIT_BSP_WORK_AREAS,
-  RTEMS_SYSINIT_ORDER_SECOND
+  RTEMS_SYSINIT_ISR_STACK,
+  RTEMS_SYSINIT_ORDER_MIDDLE
 );
-- 
2.16.4



More information about the devel mailing list