diff options
-rw-r--r-- | kern/cpumap.c | 2 | ||||
-rw-r--r-- | kern/cpumap.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/kern/cpumap.c b/kern/cpumap.c index 68a84ab9..7113af57 100644 --- a/kern/cpumap.c +++ b/kern/cpumap.c @@ -23,7 +23,7 @@ #include <kern/stddef.h> #include <machine/cpu.h> -static struct cpumap cpumap_active_cpus __read_mostly; +static struct cpumap cpumap_active_cpus __read_mostly = { { 1 } }; static struct kmem_cache cpumap_cache; diff --git a/kern/cpumap.h b/kern/cpumap.h index 0e57c30d..68a040ce 100644 --- a/kern/cpumap.h +++ b/kern/cpumap.h @@ -141,6 +141,9 @@ void cpumap_setup(void); /* * Return a cpumap representing all active processors. + * + * Until the cpumap module is initialized, the cpumap returned by this + * function describes the BSP only. */ const struct cpumap * cpumap_all(void); |