diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-04 22:19:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-04 22:19:19 +0000 |
commit | 6aa25dac92e92c95e3c133e0bc330bd3f4b7e9dd (patch) | |
tree | 96ef3d0f465b080c486145f027544cefefe68e89 /cpukit/sapi/include/confdefs.h | |
parent | 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-6aa25dac92e92c95e3c133e0bc330bd3f4b7e9dd.tar.bz2 |
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h, sapi/include/rtems/config.h,
sapi/include/rtems/init.h, sapi/src/exinit.c,
score/include/rtems/system.h, score/src/isr.c: Move
interrupt_stack_size field from CPU Table to Configuration Table.
Eliminate CPU Table from all ports. Delete references to CPU Table in
all forms.
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 4f7cb1887a..35ca7038a7 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -162,21 +162,6 @@ extern int rtems_telnetd_maximum_ptys; #define CONFIGURE_STACK_CHECKER_EXTENSION 0 #endif -/* - * Interrupt Stack Space - * - * NOTE: There is currently no way for the application to override - * the interrupt stack size set by the BSP. - */ - -#if (CPU_ALLOCATE_INTERRUPT_STACK == 0) -#undef CONFIGURE_INTERRUPT_STACK_MEMORY -#define CONFIGURE_INTERRUPT_STACK_MEMORY 0 -#else - #ifndef CONFIGURE_INTERRUPT_STACK_MEMORY - #define CONFIGURE_INTERRUPT_STACK_MEMORY RTEMS_MINIMUM_STACK_SIZE - #endif -#endif /* * Idle task body configuration @@ -209,6 +194,28 @@ extern int rtems_telnetd_maximum_ptys; #endif /* + * Interrupt stack size configuration + * + * By default, the interrupt stack will be of minimum size. + * The BSP or application may override this value. + */ +#ifndef CONFIGURE_INTERRUPT_STACK_SIZE + #ifdef BSP_INTERRUPT_STACK_SIZE + #define CONFIGURE_INTERRUPT_STACK_SIZE BSP_INTERRUPT_STACK_SIZE + #else + #define CONFIGURE_INTERRUPT_STACK_SIZE RTEMS_MINIMUM_STACK_SIZE + #endif +#endif + +/* XXX try to get to the point where all BSP support allocating the + * XXX memory from the Workspace + */ +#if (CPU_ALLOCATE_INTERRUPT_STACK == 0) + #undef CONFIGURE_INTERRUPT_STACK_SIZE + #define CONFIGURE_INTERRUPT_STACK_SIZE 0 +#endif + +/* * Task stack allocator configuration */ @@ -1098,7 +1105,7 @@ itron_initialization_tasks_table ITRON_Initialization_tasks[] = { ( CONFIGURE_MEMORY_FOR_TASKS(1) + /* IDLE */ \ ((PRIORITY_MAXIMUM+1) * sizeof(Chain_Control)) + /* Ready chains */ \ 256 + /* name/ptr table overhead */ \ - CONFIGURE_INTERRUPT_STACK_MEMORY + /* interrupt stack */ \ + CONFIGURE_INTERRUPT_STACK_SIZE + /* interrupt stack */ \ CONFIGURE_API_MUTEX_MEMORY /* allocation mutex */ \ ) @@ -1246,6 +1253,7 @@ rtems_configuration_table Configuration = { CONFIGURE_TICKS_PER_TIMESLICE, /* ticks per timeslice quantum */ CONFIGURE_IDLE_TASK_BODY, /* user's IDLE task */ CONFIGURE_IDLE_TASK_STACK_SIZE, /* IDLE task stack size */ + CONFIGURE_INTERRUPT_STACK_SIZE, /* interrupt stack size */ CONFIGURE_TASK_STACK_ALLOCATOR, /* stack allocator */ CONFIGURE_TASK_STACK_DEALLOCATOR, /* stack deallocator */ CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY, /* true to clear memory */ |