summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/confdefs.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-18 11:27:39 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:46:01 +0200
commitf913c796ffed8fe19e37f9a4dc914f6dca68baa2 (patch)
treee2206e3529d92283f701c1bdfba4f7b7c1422d47 /cpukit/sapi/include/confdefs.h
parentscore: Add and use _ISR_Get_nest_level() (diff)
downloadrtems-f913c796ffed8fe19e37f9a4dc914f6dca68baa2.tar.bz2
sapi: Add rtems_configuration_is_smp_enabled()
Add a configuration field which indicates if the SMP mode of operation is enabled. This can be used to disable features unsupported on SMP, e.g task variables.
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r--cpukit/sapi/include/confdefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 1585548e7c..b7cbfaa676 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -2364,6 +2364,13 @@ const rtems_libio_helper rtems_fs_init_helper =
#else
false,
#endif
+ #ifdef RTEMS_SMP
+ #ifdef CONFIGURE_SMP_APPLICATION
+ true,
+ #else
+ false,
+ #endif
+ #endif
CONFIGURE_MAXIMUM_DRIVERS, /* maximum device drivers */
CONFIGURE_NUMBER_OF_DRIVERS, /* static device drivers */
Device_drivers, /* pointer to driver table */