version 1.27.2.1, 2008/05/16 02:21:49 |
version 1.27.2.2, 2009/05/04 08:10:32 |
|
|
# 2. Redistributions in binary form must reproduce the above copyright |
# 2. Redistributions in binary form must reproduce the above copyright |
# notice, this list of conditions and the following disclaimer in the |
# notice, this list of conditions and the following disclaimer in the |
# documentation and/or other materials provided with the distribution. |
# documentation and/or other materials provided with the distribution. |
# 3. All advertising materials mentioning features or use of this software |
# 3. Neither the name of the University nor the names of its contributors |
# must display the following acknowledgement: |
|
# This product includes software developed by the University of |
|
# California, Berkeley and its contributors. |
|
# 4. Neither the name of the University nor the names of its contributors |
|
# may be used to endorse or promote products derived from this software |
# may be used to endorse or promote products derived from this software |
# without specific prior written permission. |
# without specific prior written permission. |
# |
# |
|
|
if defined(_KERNEL_OPT) |
if defined(_KERNEL_OPT) |
include "opt_compat_netbsd32.h" |
include "opt_compat_netbsd32.h" |
include "opt_compat_linux32.h" |
include "opt_compat_linux32.h" |
include "opt_multiprocessor.h" |
|
include "opt_xen.h" |
include "opt_xen.h" |
endif |
endif |
|
|
Line 87 include <sys/mutex.h> |
|
Line 82 include <sys/mutex.h> |
|
include <sys/rwlock.h> |
include <sys/rwlock.h> |
include <sys/cpu_data.h> |
include <sys/cpu_data.h> |
include <sys/evcnt.h> |
include <sys/evcnt.h> |
|
include <sys/cpu.h> |
|
|
include <netinet/in.h> |
include <netinet/in.h> |
include <netinet/in_systm.h> |
include <netinet/in_systm.h> |
Line 110 if defined(COMPAT_LINUX32) |
|
Line 106 if defined(COMPAT_LINUX32) |
|
include <machine/linux32_machdep.h> |
include <machine/linux32_machdep.h> |
endif |
endif |
|
|
if defined(_KERNEL) && !defined(_LKM) |
if defined(_KERNEL) && defined(_KERNEL_OPT) |
include "isa.h" |
include "isa.h" |
include "ioapic.h" |
include "ioapic.h" |
endif |
endif |
|
|
include <machine/isa_machdep.h> |
include <machine/isa_machdep.h> |
endif |
endif |
|
|
ifdef MULTIPROCESSOR |
|
include <machine/cpu.h> |
|
endif |
|
|
|
if NIOAPIC > 0 |
if NIOAPIC > 0 |
include <machine/i82093reg.h> |
include <machine/i82093reg.h> |
include <machine/i82093var.h> |
include <machine/i82093var.h> |
Line 156 define PDIR_SLOT_PTE PDIR_SLOT_PTE |
|
Line 148 define PDIR_SLOT_PTE PDIR_SLOT_PTE |
|
|
|
define VM_MAXUSER_ADDRESS (unsigned long long)VM_MAXUSER_ADDRESS |
define VM_MAXUSER_ADDRESS (unsigned long long)VM_MAXUSER_ADDRESS |
|
|
define UVM_PAGE_IDLE_ZERO offsetof(struct uvm, page_idle_zero) |
|
|
|
define L_ADDR offsetof(struct lwp, l_addr) |
define L_ADDR offsetof(struct lwp, l_addr) |
define L_FLAG offsetof(struct lwp, l_flag) |
define L_FLAG offsetof(struct lwp, l_flag) |
define L_PROC offsetof(struct lwp, l_proc) |
define L_PROC offsetof(struct lwp, l_proc) |
Line 166 define L_NCSW offsetof(struct lwp, l_n |
|
Line 156 define L_NCSW offsetof(struct lwp, l_n |
|
define L_NOPREEMPT offsetof(struct lwp, l_nopreempt) |
define L_NOPREEMPT offsetof(struct lwp, l_nopreempt) |
define L_DOPREEMPT offsetof(struct lwp, l_dopreempt) |
define L_DOPREEMPT offsetof(struct lwp, l_dopreempt) |
define L_CPU offsetof(struct lwp, l_cpu) |
define L_CPU offsetof(struct lwp, l_cpu) |
|
define L_KPRIORITY offsetof(struct lwp, l_kpriority) |
define L_MD_REGS offsetof(struct lwp, l_md.md_regs) |
define L_MD_REGS offsetof(struct lwp, l_md.md_regs) |
define L_MD_FLAGS offsetof(struct lwp, l_md.md_flags) |
define L_MD_FLAGS offsetof(struct lwp, l_md.md_flags) |
define L_MD_ASTPENDING offsetof(struct lwp, l_md.md_astpending) |
define L_MD_ASTPENDING offsetof(struct lwp, l_md.md_astpending) |
Line 248 define CPU_INFO_PMAP offsetof(struct cp |
|
Line 239 define CPU_INFO_PMAP offsetof(struct cp |
|
define CPU_INFO_CPUMASK offsetof(struct cpu_info, ci_cpumask) |
define CPU_INFO_CPUMASK offsetof(struct cpu_info, ci_cpumask) |
define CPU_INFO_RSP0 offsetof(struct cpu_info, ci_tss.tss_rsp0) |
define CPU_INFO_RSP0 offsetof(struct cpu_info, ci_tss.tss_rsp0) |
define CPU_INFO_NSYSCALL offsetof(struct cpu_info, ci_data.cpu_nsyscall) |
define CPU_INFO_NSYSCALL offsetof(struct cpu_info, ci_data.cpu_nsyscall) |
|
define CPU_INFO_NTRAP offsetof(struct cpu_info, ci_data.cpu_ntrap) |
define CPU_INFO_CURPRIORITY offsetof(struct cpu_info, ci_schedstate.spc_curpriority) |
define CPU_INFO_CURPRIORITY offsetof(struct cpu_info, ci_schedstate.spc_curpriority) |
|
define CPU_INFO_FPCURLWP offsetof(struct cpu_info, ci_fpcurlwp) |
|
|
define CPU_INFO_GDT offsetof(struct cpu_info, ci_gdt) |
define CPU_INFO_GDT offsetof(struct cpu_info, ci_gdt) |
define CPU_INFO_IPENDING offsetof(struct cpu_info, ci_ipending) |
define CPU_INFO_IPENDING offsetof(struct cpu_info, ci_ipending) |
Line 279 define ACPI_SUSPEND_CR4 offsetof(struct |
|
Line 272 define ACPI_SUSPEND_CR4 offsetof(struct |
|
define ACPI_SUSPEND_CR8 offsetof(struct cpu_info, ci_suspend_cr8) |
define ACPI_SUSPEND_CR8 offsetof(struct cpu_info, ci_suspend_cr8) |
|
|
if NIOAPIC > 0 |
if NIOAPIC > 0 |
|
define PIC_IOAPIC offsetof(struct pic, pic_ioapic) |
define IOAPIC_SC_REG offsetof(struct ioapic_softc, sc_reg) |
define IOAPIC_SC_REG offsetof(struct ioapic_softc, sc_reg) |
define IOAPIC_SC_DATA offsetof(struct ioapic_softc, sc_data) |
define IOAPIC_SC_DATA offsetof(struct ioapic_softc, sc_data) |
define PIC_LOCK offsetof(struct pic, pic_lock) |
define PIC_LOCK offsetof(struct pic, pic_lock) |
Line 388 define PGOFSET PGOFSET |
|
Line 382 define PGOFSET PGOFSET |
|
define PGSHIFT PGSHIFT |
define PGSHIFT PGSHIFT |
|
|
define VM_MIN_KERNEL_ADDRESS_HIGH32 (VM_MIN_KERNEL_ADDRESS >> 32) |
define VM_MIN_KERNEL_ADDRESS_HIGH32 (VM_MIN_KERNEL_ADDRESS >> 32) |
|
|
|
define RESCHED_KPREEMPT RESCHED_KPREEMPT |