From 01a49905ae7c39a747f22edb613050dcac0d17ed Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 Apr 1998 22:56:31 +0000 Subject: Account for interrupt stack space --- c/src/exec/sapi/include/confdefs.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'c/src/exec/sapi/include/confdefs.h') diff --git a/c/src/exec/sapi/include/confdefs.h b/c/src/exec/sapi/include/confdefs.h index 97284c0de3..fae6ba76b4 100644 --- a/c/src/exec/sapi/include/confdefs.h +++ b/c/src/exec/sapi/include/confdefs.h @@ -49,6 +49,16 @@ extern posix_api_configuration_table Configuration_POSIX_API; #define CONFIGURE_STACK_CHECKER_EXTENSION 0 #endif +/* + * Interrupt Stack Space + */ + +#if (CPU_ALLOCATE_INTERRUPT_STACK) +#define CONFIGURE_INTERRUPT_STACK_MEMORY RTEMS_MINIMUM_STACK_SIZE +#else +#define CONFIGURE_INTERRUPT_STACK_MEMORY 0 +#endif + /* * Default User Initialization Task Table. This table guarantees that * one user initialization table is defined. @@ -439,7 +449,8 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = { #define CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD \ ( CONFIGURE_MEMORY_FOR_TASKS(1) + /* IDLE */ \ (256 * 12) + /* Ready chains */ \ - 256 /* name/ptr table overhead */ \ + 256 + /* name/ptr table overhead */ \ + CONFIGURE_INTERRUPT_STACK_MEMORY /* interrupt stack */ \ ) #define CONFIGURE_EXECUTIVE_RAM_SIZE \ -- cgit v1.2.3