[PATCH v2 2/3] config: Fix _ISR_Stack_area_end

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Apr 7 08:57:10 UTC 2020


Update #3799.
---
 cpukit/include/rtems/confdefs/percpu.h | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/cpukit/include/rtems/confdefs/percpu.h b/cpukit/include/rtems/confdefs/percpu.h
index 730571b54a..f3a9a4f3e7 100644
--- a/cpukit/include/rtems/confdefs/percpu.h
+++ b/cpukit/include/rtems/confdefs/percpu.h
@@ -93,14 +93,17 @@ RTEMS_DEFINE_GLOBAL_SYMBOL(
   CONFIGURE_INTERRUPT_STACK_SIZE
 );
 
-char _ISR_Stack_area_begin[
-  _CONFIGURE_MAXIMUM_PROCESSORS * CONFIGURE_INTERRUPT_STACK_SIZE
-] RTEMS_ALIGNED( CPU_INTERRUPT_STACK_ALIGNMENT )
-RTEMS_SECTION( ".rtemsstack.interrupt.begin" );
+#define _CONFIGURE_INTERRUPT_STACK_AREA_SIZE \
+  ( CONFIGURE_INTERRUPT_STACK_SIZE * _CONFIGURE_MAXIMUM_PROCESSORS )
+
+char _ISR_Stack_area_begin[ _CONFIGURE_INTERRUPT_STACK_AREA_SIZE ]
+RTEMS_ALIGNED( CPU_INTERRUPT_STACK_ALIGNMENT )
+RTEMS_SECTION( ".rtemsstack.interrupt" );
 
-RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION(
+RTEMS_DEFINE_GLOBAL_SYMBOL(
   _ISR_Stack_area_end,
-  ".rtemsstack.interrupt.end"
+  RTEMS_SYMBOL_NAME( _ISR_Stack_area_begin )
+    + _CONFIGURE_INTERRUPT_STACK_AREA_SIZE
 );
 
 /* Thread stack size configuration */
-- 
2.16.4



More information about the devel mailing list