diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-27 23:26:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-27 23:26:32 +0200 |
commit | 94250a842b225bb11d329623b9f85623ef56205b (patch) | |
tree | e825309ab3f2008d3192c01f37eca21eb5ccdfc0 /kern | |
parent | db23e0680b30d8d428550260ff48c3dbd18908f1 (diff) | |
download | gnumach-94250a842b225bb11d329623b9f85623ef56205b.tar.gz gnumach-94250a842b225bb11d329623b9f85623ef56205b.tar.bz2 gnumach-94250a842b225bb11d329623b9f85623ef56205b.zip |
Define CPU_L1_SIZE even when NCPUS != 1
As reported by Almudena Garcia <liberamenso10000@gmail.com>
* kern/cpu_number.h [NCPUS != 1] (CPU_L1_SIZE): Define macro.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/cpu_number.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/cpu_number.h b/kern/cpu_number.h index 650f4042..5d3e4bd1 100644 --- a/kern/cpu_number.h +++ b/kern/cpu_number.h @@ -37,7 +37,8 @@ int master_cpu; /* 'master' processor - keeps time */ /* cpu number is always 0 on a single processor system */ #define cpu_number() (0) +#endif /* NCPUS == 1 */ + #define CPU_L1_SIZE (1 << CPU_L1_SHIFT) -#endif /* NCPUS == 1 */ #endif /* _KERN_CPU_NUMBER_H_ */ |