2000-05-27 01:19:19 +04:00
|
|
|
/* $NetBSD: cpu.h,v 1.24 2000/05/26 21:20:11 thorpej Exp $ */
|
1994-10-27 00:08:38 +03:00
|
|
|
|
2000-01-09 18:34:41 +03:00
|
|
|
#ifndef _PMAX_CPU_H_
|
|
|
|
#define _PMAX_CPU_H_
|
1998-03-25 11:35:39 +03:00
|
|
|
|
1996-03-24 10:54:42 +03:00
|
|
|
#include <mips/cpu.h>
|
1999-01-16 05:36:01 +03:00
|
|
|
#include <mips/cpuregs.h>
|
1998-03-25 11:35:39 +03:00
|
|
|
|
2000-05-27 01:19:19 +04:00
|
|
|
#ifndef _LOCORE
|
|
|
|
#if defined(_KERNEL) && !defined(_LKM)
|
|
|
|
#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 curcpu() (&cpu_info_store)
|
|
|
|
#define cpu_number() (0)
|
|
|
|
#endif
|
|
|
|
#endif /* !_LOCORE */
|
|
|
|
|
2000-01-09 18:34:41 +03:00
|
|
|
#endif /* !_PMAX_CPU_H_ */
|