diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 13:57:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:19 +0100 |
commit | 567455b67ae820b58b5749d1b059d0ccfc4d0e95 (patch) | |
tree | 98d68e1bdf711f4ffc208653d8d96e5d74ff4827 /cpukit/include/rtems/score/smp.h | |
parent | config: Add _Workspace_Is_unified (diff) | |
download | rtems-567455b67ae820b58b5749d1b059d0ccfc4d0e95.tar.bz2 |
config: Add _SMP_Processor_configure_maximum
Move the processor maximum configuration constant out of the
configuration table.
Update #3875.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/smp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/smp.h b/cpukit/include/rtems/score/smp.h index 4d6b24ae48..2722fbdcee 100644 --- a/cpukit/include/rtems/score/smp.h +++ b/cpukit/include/rtems/score/smp.h @@ -36,6 +36,19 @@ extern "C" { * @{ */ +/** + * @brief The configured processor maximum. + * + * In SMP configurations, this constant is defined by the application + * configuration via <rtems/confdefs.h>, otherwise it is a compile-time + * constant with the value one. + */ +#if defined(RTEMS_SMP) + extern const uint32_t _SMP_Processor_configured_maximum; +#else + #define _SMP_Processor_configured_maximum 1 +#endif + #if defined( RTEMS_SMP ) extern uint32_t _SMP_Processor_maximum; |