forked from Imagelibrary/rtems
sapi: Make initial user extensions table read-only
This commit is contained in:
@@ -1608,7 +1608,7 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
#if defined(CONFIGURE_INITIAL_EXTENSIONS) || \
|
||||
defined(CONFIGURE_STACK_CHECKER_ENABLED) || \
|
||||
(defined(RTEMS_NEWLIB) && !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY))
|
||||
rtems_extensions_table Configuration_Initial_Extensions[] = {
|
||||
static const rtems_extensions_table Configuration_Initial_Extensions[] = {
|
||||
#if !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY)
|
||||
RTEMS_NEWLIB_EXTENSION,
|
||||
#endif
|
||||
|
||||
@@ -213,7 +213,7 @@ typedef struct {
|
||||
uint32_t number_of_device_drivers;
|
||||
rtems_driver_address_table *Device_driver_table;
|
||||
uint32_t number_of_initial_extensions;
|
||||
rtems_extensions_table *User_extension_table;
|
||||
const rtems_extensions_table *User_extension_table;
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
rtems_multiprocessing_table *User_multiprocessing_table;
|
||||
#endif
|
||||
|
||||
@@ -30,7 +30,7 @@ void _User_extensions_Handler_initialization(void)
|
||||
User_extensions_Control *extension;
|
||||
uint32_t i;
|
||||
uint32_t number_of_extensions;
|
||||
User_extensions_Table *initial_extensions;
|
||||
const User_extensions_Table *initial_extensions;
|
||||
|
||||
number_of_extensions = rtems_configuration_get_number_of_initial_extensions();
|
||||
initial_extensions = rtems_configuration_get_user_extension_table();
|
||||
|
||||
Reference in New Issue
Block a user