summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/smp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-14 13:57:20 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 07:15:19 +0100
commit567455b67ae820b58b5749d1b059d0ccfc4d0e95 (patch)
tree98d68e1bdf711f4ffc208653d8d96e5d74ff4827 /cpukit/include/rtems/score/smp.h
parentconfig: Add _Workspace_Is_unified (diff)
downloadrtems-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 'cpukit/include/rtems/score/smp.h')
-rw-r--r--cpukit/include/rtems/score/smp.h13
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;