summaryrefslogtreecommitdiff
path: root/kern/cpu_number.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/cpu_number.h')
-rw-r--r--kern/cpu_number.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/kern/cpu_number.h b/kern/cpu_number.h
index 5d3e4bd1..2ea510e4 100644
--- a/kern/cpu_number.h
+++ b/kern/cpu_number.h
@@ -37,7 +37,11 @@ int master_cpu; /* 'master' processor - keeps time */
/* cpu number is always 0 on a single processor system */
#define cpu_number() (0)
-#endif /* NCPUS == 1 */
+#else /* NCPUS == 1 */
+
+extern int cpu_number(void);
+
+#endif /* NCPUS != 1 */
#define CPU_L1_SIZE (1 << CPU_L1_SHIFT)