forked from Imagelibrary/rtems
2008-11-24 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1341/cpukit * sapi/include/confdefs.h: The following macros were missing the _Configure_From_workspace() wrapper on their size estimate: + CONFIGURE_INTERRUPT_STACK_MEMORY + CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API + CONFIGURE_INTERRUPT_VECTOR_TABLE + CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS In addition, there was a duplicate definition of CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API.
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
2008-11-24 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1341/cpukit
|
||||
* sapi/include/confdefs.h: The following macros were missing
|
||||
the _Configure_From_workspace() wrapper on their size estimate:
|
||||
+ CONFIGURE_INTERRUPT_STACK_MEMORY
|
||||
+ CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API
|
||||
+ CONFIGURE_INTERRUPT_VECTOR_TABLE
|
||||
+ CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS
|
||||
In addition, there was a duplicate definition of
|
||||
CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API.
|
||||
|
||||
2008-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Add AC_CHECK_FUNC's to check functions migrating
|
||||
|
||||
@@ -346,7 +346,8 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
#if (CPU_ALLOCATE_INTERRUPT_STACK == 0)
|
||||
#define CONFIGURE_INTERRUPT_STACK_MEMORY 0
|
||||
#else
|
||||
#define CONFIGURE_INTERRUPT_STACK_MEMORY CONFIGURE_INTERRUPT_STACK_SIZE
|
||||
#define CONFIGURE_INTERRUPT_STACK_MEMORY \
|
||||
_Configure_From_workspace( CONFIGURE_INTERRUPT_STACK_SIZE )
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -809,10 +810,11 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
|
||||
#ifndef CONFIGURE_DISABLE_CLASSIC_NOTEPADS
|
||||
#define CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API \
|
||||
sizeof(RTEMS_API_Control)
|
||||
_Configure_From_workspace( sizeof(RTEMS_API_Control) )
|
||||
#else
|
||||
#define CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API \
|
||||
(sizeof(RTEMS_API_Control) - (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)))
|
||||
_Configure_From_workspace( sizeof(RTEMS_API_Control) - \
|
||||
(RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)))
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -921,14 +923,6 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 50
|
||||
#endif
|
||||
|
||||
#ifndef CONFIGURE_DISABLE_CLASSIC_NOTEPADS
|
||||
#define CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API \
|
||||
sizeof(RTEMS_API_Control)
|
||||
#else
|
||||
#define CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API \
|
||||
(sizeof(RTEMS_API_Control) - (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Initial Extension Set
|
||||
*/
|
||||
@@ -1486,10 +1480,12 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
* solution.
|
||||
*/
|
||||
#if defined(__mips__)
|
||||
#define CONFIGURE_INTERRUPT_VECTOR_TABLE (sizeof(ISR_Handler_entry) * 256)
|
||||
#define CONFIGURE_INTERRUPT_VECTOR_TABLE \
|
||||
_Configure_From_workspace( (sizeof(ISR_Handler_entry) * 256))
|
||||
#else
|
||||
#define CONFIGURE_INTERRUPT_VECTOR_TABLE \
|
||||
(sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS)
|
||||
_Configure_From_workspace( \
|
||||
(sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS))
|
||||
#endif
|
||||
#else
|
||||
#define CONFIGURE_INTERRUPT_VECTOR_TABLE 0
|
||||
@@ -1592,10 +1588,11 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
* user extensions.
|
||||
*/
|
||||
#define CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS \
|
||||
_Configure_From_workspace( \
|
||||
(CONFIGURE_NEWLIB_EXTENSION + CONFIGURE_STACK_CHECKER_EXTENSION) * \
|
||||
sizeof(User_extensions_Control) \
|
||||
)
|
||||
((CONFIGURE_NEWLIB_EXTENSION * \
|
||||
_Configure_From_workspace( sizeof(User_extensions_Control))) + \
|
||||
(CONFIGURE_STACK_CHECKER_EXTENSION * \
|
||||
_Configure_From_workspace( sizeof(User_extensions_Control))) \
|
||||
)
|
||||
|
||||
/**
|
||||
* This macro provides a summation of the memory required by the
|
||||
|
||||
Reference in New Issue
Block a user