diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-11 11:03:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-11 11:40:44 +0200 |
commit | 1309718114ed5386175a2df66c9d38ac40c3a2d0 (patch) | |
tree | 1f3dbdd7c8588c80119f19e721fe0c73559d90f3 /cpukit/sapi/include/confdefs.h | |
parent | bsps/arm: Fix bit field offset in GIC support (diff) | |
download | rtems-1309718114ed5386175a2df66c9d38ac40c3a2d0.tar.bz2 |
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.
Diffstat (limited to '')
-rwxr-xr-x | cpukit/sapi/include/confdefs.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 |