diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-07-30 16:05:25 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-07-30 16:05:25 +0000 |
commit | 67b74e31ca6353bcf28b954cbc86dc2c37c8c8d1 (patch) | |
tree | 0f793c9f59f057e8590cdedbf7d97ab5eb6ac79f | |
parent | 40e3361169e7c28fedda8515ec69fa48e26aeff0 (diff) |
Define MAXCPUS per mips64 port.
-rw-r--r-- | sys/arch/loongson/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/mips64/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/octeon/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/sgi/include/cpu.h | 3 |
4 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/loongson/include/cpu.h b/sys/arch/loongson/include/cpu.h index d1bb9892eb1..d8fb448975e 100644 --- a/sys/arch/loongson/include/cpu.h +++ b/sys/arch/loongson/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.7 2017/01/19 15:09:04 visa Exp $ */ +/* $OpenBSD: cpu.h,v 1.8 2017/07/30 16:05:24 visa Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -44,6 +44,7 @@ #ifdef _KERNEL #if defined(MULTIPROCESSOR) && !defined(_LOCORE) +#define MAXCPUS 4 struct cpu_info; struct cpu_info *hw_getcurcpu(void); void hw_setcurcpu(struct cpu_info *); diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h index 863616979b4..e10986589a1 100644 --- a/sys/arch/mips64/include/cpu.h +++ b/sys/arch/mips64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.119 2017/07/12 06:26:33 natano Exp $ */ +/* $OpenBSD: cpu.h,v 1.120 2017/07/30 16:05:24 visa Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -238,7 +238,6 @@ extern void (*cpu_idle_cycle_func)(void); #define cpu_idle_cycle() (*cpu_idle_cycle_func)() #ifdef MULTIPROCESSOR -#define MAXCPUS 4 #define getcurcpu() hw_getcurcpu() #define setcurcpu(ci) hw_setcurcpu(ci) extern struct cpu_info *get_cpu_info(int); diff --git a/sys/arch/octeon/include/cpu.h b/sys/arch/octeon/include/cpu.h index 635491e2ea7..a19c2f76f30 100644 --- a/sys/arch/octeon/include/cpu.h +++ b/sys/arch/octeon/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.8 2017/02/26 05:52:02 visa Exp $ */ +/* $OpenBSD: cpu.h,v 1.9 2017/07/30 16:05:24 visa Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -46,6 +46,7 @@ #ifdef _KERNEL #if defined(MULTIPROCESSOR) && !defined(_LOCORE) +#define MAXCPUS 4 struct cpu_info; struct cpu_info *hw_getcurcpu(void); void hw_setcurcpu(struct cpu_info *); diff --git a/sys/arch/sgi/include/cpu.h b/sys/arch/sgi/include/cpu.h index 093e917370f..e1dbb7cc13e 100644 --- a/sys/arch/sgi/include/cpu.h +++ b/sys/arch/sgi/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.15 2014/03/09 10:12:17 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.16 2017/07/30 16:05:24 visa Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -46,6 +46,7 @@ #ifdef _KERNEL #if defined(MULTIPROCESSOR) && !defined(_LOCORE) +#define MAXCPUS 4 struct cpu_info; struct cpu_info *hw_getcurcpu(void); void hw_setcurcpu(struct cpu_info *); |