diff options
Diffstat (limited to 'cpukit/include/rtems/score/smp.h')
-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; |