diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-14 14:39:29 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-04 05:52:28 +0100 |
commit | c184b0cf3117c7872f465ef5e41aeb3fc65d1adb (patch) | |
tree | 891f79d11b890d81324297a34de28228f7e17756 | |
parent | bsps: Add RTEMS_SYSINIT_BSP_EARLY (diff) | |
download | rtems-c184b0cf3117c7872f465ef5e41aeb3fc65d1adb.tar.bz2 |
stackchk: Add RTEMS_SYSINIT_ISR_STACK
Use a dedicated system initialization step for the stack checker
interrupt stack support.
Update #3838.
-rw-r--r-- | cpukit/include/rtems/sysinit.h | 1 | ||||
-rw-r--r-- | 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 a5aa328f10..087de59099 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 ); |