From: Almudena Garcia Date: Mon, 10 Aug 2020 19:52:44 +0200 Subject: [PATCH 1/6] configfrag.ac: Define NCPUS to 256 if mach_ncpus > 1 This allows to define the size of cpus structures to the maximum value allowed by xAPIC, keeping this size independant of mach_ncpus value --- diff --git a/configfrag.ac b/configfrag.ac index 91d737ef..05c33a28 100644 --- a/configfrag.ac +++ b/configfrag.ac @@ -46,9 +46,11 @@ AC_DEFINE([BOOTSTRAP_SYMBOLS], [0], [BOOTSTRAP_SYMBOLS]) # 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]) + AC_DEFINE_UNQUOTED([NCPUS], [256], [number of CPUs]) [fi] # Restartable Atomic Sequences to get a really fast test-n-set. Can't be