[rtems commit] config: SMP only CONFIGURE_MAXIMUM_PROCESSORS
Sebastian Huber
sebh at rtems.org
Fri Jun 22 04:30:33 UTC 2018
Module: rtems
Branch: master
Commit: cc3edaa92d1325b8ec1fc34148bf356df6bb4790
Changeset: http://git.rtems.org/rtems/commit/?id=cc3edaa92d1325b8ec1fc34148bf356df6bb4790
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jun 20 09:55:32 2018 +0200
config: SMP only CONFIGURE_MAXIMUM_PROCESSORS
Do not set the CONFIGURE_MAXIMUM_PROCESSORS in uni-processor default
configuration, since this may lead to an oversize workspace.
Update #3459.
---
cpukit/libmisc/dummy/default-configuration.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cpukit/libmisc/dummy/default-configuration.c b/cpukit/libmisc/dummy/default-configuration.c
index 414e92b..c6ddfeb 100644
--- a/cpukit/libmisc/dummy/default-configuration.c
+++ b/cpukit/libmisc/dummy/default-configuration.c
@@ -103,7 +103,9 @@ static void Init( rtems_task_argument arg )
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_MAXIMUM_PROCESSORS 32
+#if defined(RTEMS_SMP)
+#define CONFIGURE_MAXIMUM_PROCESSORS CPU_MAXIMUM_PROCESSORS
+#endif
#define CONFIGURE_DISABLE_BSP_SETTINGS
More information about the vc
mailing list