[rtems commit] stackchk: Add RTEMS_SYSINIT_ISR_STACK
Sebastian Huber
sebh at rtems.org
Tue Feb 4 06:03:21 UTC 2020
Module: rtems
Branch: master
Commit: c184b0cf3117c7872f465ef5e41aeb3fc65d1adb
Changeset: http://git.rtems.org/rtems/commit/?id=c184b0cf3117c7872f465ef5e41aeb3fc65d1adb
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sat Dec 14 14:39:29 2019 +0100
stackchk: Add RTEMS_SYSINIT_ISR_STACK
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 a5aa328..087de59 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 3b8cf69..eec3a91 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
);
More information about the vc
mailing list