summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/include/cpu.h
blob: 42b85d8e5490637082473937fa49a7b2f13d577d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*	$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 <mips64/cpu.h>

#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 */