diff options
Diffstat (limited to 'sys/arch/sgi/include/cpu.h')
-rw-r--r-- | sys/arch/sgi/include/cpu.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/arch/sgi/include/cpu.h b/sys/arch/sgi/include/cpu.h index 2c56835ee63..b8740d1af54 100644 --- a/sys/arch/sgi/include/cpu.h +++ b/sys/arch/sgi/include/cpu.h @@ -1,6 +1,18 @@ -/* $OpenBSD: cpu.h,v 1.1 2004/08/06 21:12:18 pefo Exp $ */ +/* $OpenBSD: cpu.h,v 1.2 2009/09/15 04:54:31 syuu Exp $ */ /* Use Mips generic include file */ -#include <mips64/cpu.h> +#ifdef _KERNEL +#ifdef MULTIPROCESSOR +#if defined(TGT_OCTANE) +#define HW_CPU_NUMBER 0x900000000ff50000/* HEART_PRID */ +#else +#error MULTIPROCESSOR kernel not supported on this configuration +#endif +#define hw_cpu_number() (*(uint64_t *)HW_CPU_NUMBER) +#else/* MULTIPROCESSOR */ +#define hw_cpu_number() 0 +#endif/* MULTIPROCESSOR */ +#endif/* _KERNEL */ +#include <mips64/cpu.h> |