diff options
author | AlmuHS <liberamenso10000@gmail.com> | 2019-03-30 15:46:19 +0100 |
---|---|---|
committer | AlmuHS <liberamenso10000@gmail.com> | 2019-03-30 15:46:19 +0100 |
commit | bdce651eecece7ed44ed5ad9701a025647f08b5b (patch) | |
tree | 3b7d99be4d00e0ffce5c95aa2fbc91348ef23804 /kern | |
parent | a92991790f0ce52ece0a4a3c89348adb8e0cc88e (diff) |
initialized master_cpu
Diffstat (limited to 'kern')
-rw-r--r-- | kern/cpu_number.c | 2 | ||||
-rw-r--r-- | kern/cpu_number.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/kern/cpu_number.c b/kern/cpu_number.c index e7942d6b..768d1619 100644 --- a/kern/cpu_number.c +++ b/kern/cpu_number.c @@ -1,6 +1,8 @@ #include <kern/cpu_number.h> #include <i386at/acpi_rsdp.h> +unsigned int master_cpu = 0; /* 'master' processor - keeps time */ + int cpu_number() { diff --git a/kern/cpu_number.h b/kern/cpu_number.h index d15e20a2..ea94aba2 100644 --- a/kern/cpu_number.h +++ b/kern/cpu_number.h @@ -35,7 +35,7 @@ * Definitions for cpu identification in multi-processors. */ -unsigned int master_cpu; /* 'master' processor - keeps time */ +extern unsigned int master_cpu; /* 'master' processor - keeps time */ #if (NCPUS == 1) /* cpu number is always 0 on a single processor system */ |