diff options
author | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-09-15 04:54:32 +0000 |
---|---|---|
committer | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-09-15 04:54:32 +0000 |
commit | 420c66102dff0eb493dc933d0e433b49fdc40e05 (patch) | |
tree | c98e189cec3bb4b92d0334be689d7adc1ab53085 /sys/arch/sgi/include/cpu.h | |
parent | fb4d0ae558e48da59c8660b0547bfe00cf9ca436 (diff) |
cpu status flag, cpuid added to cpu_info.
cpu_info pointer array, cpu_info iterator, cpu_number() implementation added.
constraint modifier fixed in lock.h to output correct assembly.
calling proc_trampoline_mp in exception.S.
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> |