diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-02-11 12:00:29 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-11 15:09:52 +0100 |
commit | 2556fdece900d67529d5eda01f1bdaae4ffe96b0 (patch) | |
tree | ac1a2c70af58ee74afe6a467bfc928ba04a3ee8f /configfrag.ac | |
parent | 36c4fbd5e309b89b4c2df2b2e8dfade02f260c4e (diff) | |
download | gnumach-2556fdece900d67529d5eda01f1bdaae4ffe96b0.tar.gz gnumach-2556fdece900d67529d5eda01f1bdaae4ffe96b0.tar.bz2 gnumach-2556fdece900d67529d5eda01f1bdaae4ffe96b0.zip |
Enable MACH_HOST
This is only enabled when NCPUS > 1.
Enables some code paths that allows userspace to manage cpu resources via
processor set RPCs.
Message-ID: <20240211120023.1889731-1-damien@zamaudio.com>
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 f9285c9d..b8b41261 100644 --- a/configfrag.ac +++ b/configfrag.ac @@ -70,8 +70,12 @@ AC_DEFINE([MACH_DEBUG], [1], [MACH_DEBUG]) # Fixed priority threads. AC_DEFINE([MACH_FIXPRI], [1], [MACH_FIXPRI]) -# Mach host (resource alloc.). -AC_DEFINE([MACH_HOST], [0], [MACH_HOST]) +# Mach host (cpu resource alloc.). +[if [ $mach_ncpus -gt 1 ]; then] + AC_DEFINE([MACH_HOST], [1], [MACH_HOST]) +[else] + AC_DEFINE([MACH_HOST], [0], [MACH_HOST]) +[fi] # IPC debugging calls. AC_DEFINE([MACH_IPC_DEBUG], [1], [MACH_IPC_DEBUG]) |