NetBSD/sys/arch/sgimips/include/cpu.h

32 lines
673 B
C
Raw Normal View History

2001-05-30 15:57:16 +04:00
/* $NetBSD: cpu.h,v 1.2 2001/05/30 12:28:50 mrg Exp $ */
2000-06-14 19:39:55 +04:00
#ifndef _SGIMIPS_CPU_H
#define _SGIMIPS_CPU_H
#include <mips/cpu.h>
#include <mips/cpuregs.h>
#ifndef _LOCORE
2001-05-30 15:57:16 +04:00
#if defined(_KERNEL_OPT)
2000-06-14 19:39:55 +04:00
#include "opt_lockdebug.h"
#endif
#include <sys/sched.h>
struct cpu_info {
struct schedstate_percpu ci_schedstate; /* scheduler state */
#if defined(DIAGNOSTIC) || defined(LOCKDEBUG)
u_long ci_spin_locks; /* # of spin locks held */
u_long ci_simple_locks; /* # of simple locks held */
#endif
};
#ifdef _KERNEL
extern struct cpu_info cpu_info_store;
#define cpu_number() (0)
#define curcpu() (&cpu_info_store)
#endif
#endif /* !_LOCORE */
#endif /* !_SGIMIPS_CPU_H_ */