diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2007-08-04 18:50:19 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:12 +0200 |
commit | 2d38d0f995f30c5f04dcc0c10052f6c335f99987 (patch) | |
tree | 2025b98da15b2d4347408725ad8ab876bc0138d2 /configfrag.ac | |
parent | 5ad5458f9ea2b6fa91f2ee2538aa82f1eead5dfb (diff) | |
download | gnumach-2d38d0f995f30c5f04dcc0c10052f6c335f99987.tar.gz gnumach-2d38d0f995f30c5f04dcc0c10052f6c335f99987.tar.bz2 gnumach-2d38d0f995f30c5f04dcc0c10052f6c335f99987.zip |
2007-08-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
* configfrag.ac (mach_ncpus): Define to 1.
(NCPUS): Set to $mach_ncpus.
[$mach_ncpus > 1] (MULTIPROCESSOR): Set to 1.
* linux/configfrag.ac [$mach_ncpus > 1] (__SMP__): Define.
Diffstat (limited to 'configfrag.ac')
-rw-r--r-- | configfrag.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configfrag.ac b/configfrag.ac index 361bf38f..77b00248 100644 --- a/configfrag.ac +++ b/configfrag.ac @@ -30,9 +30,13 @@ AC_DEFINE([KERNEL], [1], [KERNEL]) # Used in `kern/bootstrap.c'. AC_DEFINE([BOOTSTRAP_SYMBOLS], [0], [BOOTSTRAP_SYMBOLS]) -# Multiprocessor support is broken. -AC_DEFINE([NCPUS], [1], [set things up for a uniprocessor]) +# Multiprocessor support is still broken. AH_TEMPLATE([MULTIPROCESSOR], [set things up for a uniprocessor]) +mach_ncpus=1 +AC_DEFINE_UNQUOTED([NCPUS], [$mach_ncpus], [number of CPUs]) +[if [ $mach_ncpus -gt 1 ]; then] + AC_DEFINE([MULTIPROCESSOR], [1], [set things up for a multiprocessor]) +[fi] # Restartable Atomic Sequences to get a really fast test-n-set. Can't be # enabled, as the `void recover_ras()' function is missing. |