summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-07 13:59:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-13 09:20:57 +0100
commit466cf31d81cf0cc5fd659aed0924a1f6ee7d18be (patch)
treed1381235011ecaced397b15ba14e4522dd8db72c /cpukit/sapi
parentscore: Add and use _User_extensions_Iterate() (diff)
downloadrtems-466cf31d81cf0cc5fd659aed0924a1f6ee7d18be.tar.bz2
score: Statically initialize user extensions
The initial extensions remain now in a read-only table and will not be copied to work space memory. The extension chains are statically initialized. This makes it possible to call _User_extensions_Iterate() independent of the system state. It is now guaranteed that the fatal callout of the initial extensions will be called provided the stack pointer, the read-only data, and code memory are valid.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/confdefs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 5afac3acf4..7e911035ca 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -2090,11 +2090,11 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
* user extensions.
*/
#define CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS \
- ((CONFIGURE_NEWLIB_EXTENSION * \
- _Configure_From_workspace( sizeof(User_extensions_Control))) + \
- (CONFIGURE_STACK_CHECKER_EXTENSION * \
- _Configure_From_workspace( sizeof(User_extensions_Control))) \
- )
+ (CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS == 0 ? 0 : \
+ _Configure_From_workspace( \
+ CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS \
+ * sizeof(User_extensions_Switch_control) \
+ ))
/**
* This macro provides a summation of the memory required by the