version 1.40.16.3, 2006/12/30 20:46:09 |
version 1.40.16.4, 2007/02/26 09:06:55 |
Line 82 include "opt_compat_netbsd.h" |
|
Line 82 include "opt_compat_netbsd.h" |
|
include "opt_multiprocessor.h" |
include "opt_multiprocessor.h" |
endif |
endif |
|
|
|
quote #define __MUTEX_PRIVATE |
|
quote #define __RWLOCK_PRIVATE |
|
|
include <sys/param.h> |
include <sys/param.h> |
include <sys/proc.h> |
include <sys/proc.h> |
include <sys/resourcevar.h> |
include <sys/resourcevar.h> |
include <sys/device.h> |
include <sys/device.h> |
include <sys/user.h> |
include <sys/user.h> |
include <sys/mbuf.h> |
include <sys/mbuf.h> |
|
include <sys/mutex.h> |
|
include <sys/rwlock.h> |
|
|
include <netinet/in.h> |
include <netinet/in.h> |
include <netinet/in_systm.h> |
include <netinet/in_systm.h> |
include <netinet/ip.h> |
include <netinet/ip.h> |
Line 187 define L_PROC offsetof(struct lwp, l_p |
|
Line 193 define L_PROC offsetof(struct lwp, l_p |
|
define L_MD_TSS_SEL offsetof(struct lwp, l_md.md_tss_sel) |
define L_MD_TSS_SEL offsetof(struct lwp, l_md.md_tss_sel) |
define L_MD_REGS offsetof(struct lwp, l_md.md_regs) |
define L_MD_REGS offsetof(struct lwp, l_md.md_regs) |
define L_CPU offsetof(struct lwp, l_cpu) |
define L_CPU offsetof(struct lwp, l_cpu) |
|
define L_MUTEX offsetof(struct lwp, l_mutex) |
|
define L_MD_ASTPENDING offsetof(struct lwp, l_md.md_astpending) |
define P_FLAG offsetof(struct proc, p_flag) |
define P_FLAG offsetof(struct proc, p_flag) |
define P_RASLIST offsetof(struct proc, p_raslist) |
define P_RASLIST offsetof(struct proc, p_raslist) |
define P_MD_SYSCALL offsetof(struct proc, p_md.md_syscall) |
define P_MD_SYSCALL offsetof(struct proc, p_md.md_syscall) |
define P_MD_ASTPENDING offsetof(struct proc, p_md.md_astpending) |
|
|
|
define P_SYSTEM P_SYSTEM |
define PK_SYSTEM PK_SYSTEM |
|
|
define M_DATA offsetof(struct mbuf, m_data) |
define M_DATA offsetof(struct mbuf, m_data) |
define M_LEN offsetof(struct mbuf, m_len) |
define M_LEN offsetof(struct mbuf, m_len) |
Line 280 define BIOSCALLREG_EDI offsetof(struct |
|
Line 287 define BIOSCALLREG_EDI offsetof(struct |
|
define BIOSCALLREG_EFLAGS offsetof(struct bioscallregs, EFLAGS) |
define BIOSCALLREG_EFLAGS offsetof(struct bioscallregs, EFLAGS) |
endif |
endif |
|
|
|
define CPU_INFO_SELF150 offsetof(struct cpu_info, ci_self150) |
define CPU_INFO_SELF offsetof(struct cpu_info, ci_self) |
define CPU_INFO_SELF offsetof(struct cpu_info, ci_self) |
define CPU_INFO_RESCHED offsetof(struct cpu_info, ci_want_resched) |
define CPU_INFO_RESCHED offsetof(struct cpu_info, ci_want_resched) |
define CPU_INFO_WANT_PMAPLOAD offsetof(struct cpu_info, ci_want_pmapload) |
define CPU_INFO_WANT_PMAPLOAD offsetof(struct cpu_info, ci_want_pmapload) |
Line 307 define CPU_INFO_IUNMASK offsetof(struct |
|
Line 315 define CPU_INFO_IUNMASK offsetof(struct |
|
define CPU_INFO_ILEVEL offsetof(struct cpu_info, ci_ilevel) |
define CPU_INFO_ILEVEL offsetof(struct cpu_info, ci_ilevel) |
define CPU_INFO_IDEPTH offsetof(struct cpu_info, ci_idepth) |
define CPU_INFO_IDEPTH offsetof(struct cpu_info, ci_idepth) |
define CPU_INFO_ISOURCES offsetof(struct cpu_info, ci_isources) |
define CPU_INFO_ISOURCES offsetof(struct cpu_info, ci_isources) |
|
define CPU_INFO_MTX_COUNT offsetof(struct cpu_info, ci_mtx_count) |
|
define CPU_INFO_MTX_OLDSPL offsetof(struct cpu_info, ci_mtx_oldspl) |
define CPU_INFO_INTRSTACK offsetof(struct cpu_info, ci_intrstack) |
define CPU_INFO_INTRSTACK offsetof(struct cpu_info, ci_intrstack) |
|
define CPU_INFO_ISTATE offsetof(struct cpu_info, ci_istate) |
|
|
if NIOAPIC > 0 |
if NIOAPIC > 0 |
define IOAPIC_SC_REG offsetof(struct ioapic_softc, sc_reg) |
define IOAPIC_SC_REG offsetof(struct ioapic_softc, sc_reg) |
Line 371 define PSL_MBO PSL_MBO |
|
Line 382 define PSL_MBO PSL_MBO |
|
define PSL_ID PSL_ID |
define PSL_ID PSL_ID |
define PSL_VM PSL_VM |
define PSL_VM PSL_VM |
define PSL_I PSL_I |
define PSL_I PSL_I |
|
|
|
define MTX_IPL offsetof(struct kmutex, u.s.mtxs_ipl) |
|
define MTX_LOCK offsetof(struct kmutex, mtx_lock) |
|
define MTX_OWNER offsetof(struct kmutex, u.mtxa_owner) |
|
|
|
define RW_OWNER offsetof(struct krwlock, rw_owner) |
|
define RW_WRITE_LOCKED RW_WRITE_LOCKED |
|
define RW_WRITE_WANTED RW_WRITE_WANTED |
|
define RW_READ_INCR RW_READ_INCR |
|
define RW_HAS_WAITERS RW_HAS_WAITERS |
|
define RW_THREAD RW_THREAD |
|
define RW_READER RW_READER |
|
define RW_WRITER RW_WRITER |