summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2008-10-10 08:05:46 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2008-10-10 08:05:46 +0000
commitf6566fc21328024e33b60c477810acc6cafa1237 (patch)
treed192668d70b0609199d8d9d6d4ce7f73eecec920 /sys/arch/powerpc/include
parent61cd21820a73ea490eb1e9d0b44e9ae52e9bec0a (diff)
Define MAXCPUS on all architectures.
For now, sparc64 is arbitrarily set to 256 (only architecture that didn't have a practical limit in the code on the number of cpus).
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r--sys/arch/powerpc/include/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h
index 2553e3b0183..b14490768a1 100644
--- a/sys/arch/powerpc/include/cpu.h
+++ b/sys/arch/powerpc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.39 2008/09/16 04:20:42 drahn Exp $ */
+/* $OpenBSD: cpu.h,v 1.40 2008/10/10 08:05:45 art Exp $ */
/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */
/*
@@ -130,6 +130,8 @@ void cpu_boot_secondary_processors(void);
#endif
+#define MAXCPUS PPC_MAXPROCS
+
extern struct cpu_info cpu_info[PPC_MAXPROCS];
#define CLKF_USERMODE(frame) (((frame)->srr1 & PSL_PR) != 0)