summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-06 13:54:05 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-07 15:08:46 +0100
commitae4f125e86f8e824d0cbb0237c1c6762d70460d8 (patch)
tree7ae31b0e0c1aa519a5cdd3964a190ad2ca13a2dc
parentmonitor: Add const qualifier (diff)
downloadrtems-ae4f125e86f8e824d0cbb0237c1c6762d70460d8.tar.bz2
sapi: Make Configuration read-only
The Configuration is now read-only and must be statically initialized via confdefs.h or similar.
-rw-r--r--cpukit/sapi/include/confdefs.h2
-rw-r--r--cpukit/sapi/include/rtems/config.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 17cb2eec23..00ba59b681 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -2316,7 +2316,7 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
/**
* This is the primary Configuration Table for this application.
*/
- rtems_configuration_table Configuration = {
+ const rtems_configuration_table Configuration = {
CONFIGURE_EXECUTIVE_RAM_SIZE, /* required RTEMS workspace */
CONFIGURE_STACK_SPACE_SIZE, /* required stack space */
CONFIGURE_MAXIMUM_USER_EXTENSIONS, /* maximum dynamic extensions */
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 55b7bdac38..ed869ec8e7 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -222,7 +222,7 @@ typedef struct {
/**
* This is the configuration table generated by confdefs.h.
*/
-extern rtems_configuration_table Configuration;
+extern const rtems_configuration_table Configuration;
#if defined(RTEMS_MULTIPROCESSING)
/**