diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2008-10-10 08:05:46 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2008-10-10 08:05:46 +0000 |
commit | f6566fc21328024e33b60c477810acc6cafa1237 (patch) | |
tree | d192668d70b0609199d8d9d6d4ce7f73eecec920 /sys/arch/powerpc/include | |
parent | 61cd21820a73ea490eb1e9d0b44e9ae52e9bec0a (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.h | 4 |
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) |