summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/config.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-04 22:19:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-04 22:19:19 +0000
commit6aa25dac92e92c95e3c133e0bc330bd3f4b7e9dd (patch)
tree96ef3d0f465b080c486145f027544cefefe68e89 /cpukit/sapi/include/rtems/config.h
parent2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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/rtems/config.h')
-rw-r--r--cpukit/sapi/include/rtems/config.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 6dd52f08eb..b5b804ac7c 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -121,6 +121,12 @@ typedef struct {
*/
uint32_t idle_task_stack_size;
+ /** This field specifies the size of the interrupt stack. If less than or
+ * equal to the minimum stack size, then the interrupt stack will be of
+ * minimum stack size.
+ */
+ uint32_t interrupt_stack_size;
+
/** The BSP may want to provide it's own stack allocation routines.
* In this case, the BSP will provide this stack allocation hook.
*/
@@ -192,6 +198,9 @@ SAPI_EXTERN rtems_configuration_table *_Configuration_Table;
#define rtems_configuration_get_idle_task_stack_size() \
(_Configuration_Table->idle_task_stack_size)
+#define rtems_configuration_get_interrupt_stack_size() \
+ (_Configuration_Table->interrupt_stack_size)
+
#define rtems_configuration_get_stack_allocate_hook() \
(_Configuration_Table->stack_allocate_hook)
@@ -220,8 +229,12 @@ SAPI_EXTERN rtems_configuration_table *_Configuration_Table;
#define rtems_configuration_get_user_extension_table() \
(_Configuration_Table->user_extension_table)
-#define rtems_configuration_get_user_multiprocessing_table() \
- (_Configuration_Table->User_multiprocessing_table)
+#if defined(RTEMS_MULTIPROCESSING)
+ #define rtems_configuration_get_user_multiprocessing_table() \
+ (_Configuration_Table->User_multiprocessing_table)
+#else
+ #define rtems_configuration_get_user_multiprocessing_table() NULL
+#endif
#define rtems_configuration_get_rtems_api_configuration() \
(_Configuration_Table->RTEMS_api_configuration)