From c184b0cf3117c7872f465ef5e41aeb3fc65d1adb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 14 Dec 2019 14:39:29 +0100 Subject: [PATCH] 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 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 );