diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-14 22:56:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-14 22:56:31 +0000 |
commit | 01a49905ae7c39a747f22edb613050dcac0d17ed (patch) | |
tree | 9bf1893f45c027d8101665e1ff05c3f8c37b9a46 /c/src/exec/sapi | |
parent | Ralf Corsepius suggested a way to get rid of UNIX compiler files and use gcc-... (diff) | |
download | rtems-01a49905ae7c39a747f22edb613050dcac0d17ed.tar.bz2 |
Account for interrupt stack space
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/sapi/headers/confdefs.h | 13 | ||||
-rw-r--r-- | c/src/exec/sapi/include/confdefs.h | 13 |
2 files changed, 24 insertions, 2 deletions
diff --git a/c/src/exec/sapi/headers/confdefs.h b/c/src/exec/sapi/headers/confdefs.h index 97284c0de3..fae6ba76b4 100644 --- a/c/src/exec/sapi/headers/confdefs.h +++ b/c/src/exec/sapi/headers/confdefs.h @@ -50,6 +50,16 @@ extern posix_api_configuration_table Configuration_POSIX_API; #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 \ 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 @@ -50,6 +50,16 @@ extern posix_api_configuration_table Configuration_POSIX_API; #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 \ |