From 1309718114ed5386175a2df66c9d38ac40c3a2d0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 11 May 2017 11:03:00 +0200 Subject: confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATION Enable the SMP configuration by default in case SMP is enabled. Add configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it explicitly. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001. --- cpukit/sapi/include/confdefs.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpukit/sapi') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 239ddd939a..06938b1b50 100755 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -224,8 +224,12 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; * An internal define to indicate that this is an SMP application * configuration. */ -#if defined(RTEMS_SMP) && CONFIGURE_MAXIMUM_PROCESSORS > 1 - #define _CONFIGURE_SMP_APPLICATION +#ifdef RTEMS_SMP + #if !defined(CONFIGURE_DISABLE_SMP_CONFIGURATION) + #define _CONFIGURE_SMP_APPLICATION + #elif CONFIGURE_MAXIMUM_PROCESSORS > 1 + #error "CONFIGURE_DISABLE_SMP_CONFIGURATION and CONFIGURE_MAXIMUM_PROCESSORS > 1 makes no sense" + #endif #endif #ifdef CONFIGURE_SMP_APPLICATION -- cgit v1.2.3