diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 14:04:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:19 +0100 |
commit | ba46b9368eaf57e8c2361c215ceb0d6335ce80fe (patch) | |
tree | 5444029488f319e3591fbbdd0257c66c3245d540 /cpukit/include/rtems/config.h | |
parent | config: Add _SMP_Processor_configure_maximum (diff) | |
download | rtems-ba46b9368eaf57e8c2361c215ceb0d6335ce80fe.tar.bz2 |
config: Add _SMP_Is_enabled
Move the is SMP enabled configuration constant out of the
configuration table.
Since this was the last configuration constant in
rtems_configuration_table, remove this type.
Update #3875.
Diffstat (limited to 'cpukit/include/rtems/config.h')
-rw-r--r-- | cpukit/include/rtems/config.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/cpukit/include/rtems/config.h b/cpukit/include/rtems/config.h index 5550397623..4811d0e704 100644 --- a/cpukit/include/rtems/config.h +++ b/cpukit/include/rtems/config.h @@ -73,28 +73,6 @@ typedef Stack_Allocator_allocate rtems_stack_allocate_hook; typedef Stack_Allocator_free rtems_stack_free_hook; /* - * The following records define the Configuration Table. The - * information contained in this table is required in all - * RTEMS systems, whether single or multiprocessor. This - * table primarily defines the following: - * - * + location and size of the RTEMS Workspace - * + microseconds per clock tick - * + clock ticks per task timeslice - * + required number of each object type for each API configured - */ -typedef struct { - #ifdef RTEMS_SMP - bool smp_enabled; - #endif -} rtems_configuration_table; - -/** - * This is the configuration table generated by confdefs.h. - */ -extern const rtems_configuration_table Configuration; - -/* * Some handy macros to avoid dependencies on either the BSP * or the exact format of the configuration table. */ @@ -182,13 +160,8 @@ uint32_t rtems_configuration_get_maximum_extensions( void ); * @retval true SMP mode of operation is enabled. * @retval false Otherwise. */ -#ifdef RTEMS_SMP - #define rtems_configuration_is_smp_enabled() \ - (Configuration.smp_enabled) -#else - #define rtems_configuration_is_smp_enabled() \ - false -#endif +#define rtems_configuration_is_smp_enabled() \ + (_SMP_Is_enabled) /** * @brief Returns the configured maximum count of processors. |