/* $OpenBSD: cpu.h,v 1.4 2009/10/30 08:13:57 syuu Exp $ */ /* Use Mips generic include file */ #ifdef _KERNEL #ifdef MULTIPROCESSOR #if defined(TGT_OCTANE) #define HW_CPU_NUMBER_REG 0x900000000ff50000 /* HEART_PRID */ #else /* TGT_OCTANE */ #error MULTIPROCESSOR kernel not supported on this configuration #endif /* TGT_OCTANE */ #define hw_cpu_number() (*(uint64_t *)HW_CPU_NUMBER_REG) #else/* MULTIPROCESSOR */ #define hw_cpu_number() 0 #endif/* MULTIPROCESSOR */ #endif/* _KERNEL */ #include #if defined(_KERNEL) && defined(MULTIPROCESSOR) && !defined(_LOCORE) void hw_cpu_boot_secondary(struct cpu_info *); void hw_cpu_hatch(struct cpu_info *); void hw_cpu_spinup_trampoline(struct cpu_info *); #endif/* _KERNEL && MULTIPROCESSOR && !_LOCORE */