genassym.cf revision 1.78
11.78Scegger# $NetBSD: genassym.cf,v 1.78 2008/11/13 18:44:51 cegger Exp $ 21.9Smycroft 31.9Smycroft# 41.66Sad# Copyright (c) 1998, 2006, 2007, 2008 The NetBSD Foundation, Inc. 51.9Smycroft# All rights reserved. 61.9Smycroft# 71.9Smycroft# This code is derived from software contributed to The NetBSD Foundation 81.58Sad# by Charles M. Hannum, and by Andrew Doran. 91.9Smycroft# 101.9Smycroft# Redistribution and use in source and binary forms, with or without 111.9Smycroft# modification, are permitted provided that the following conditions 121.9Smycroft# are met: 131.9Smycroft# 1. Redistributions of source code must retain the above copyright 141.9Smycroft# notice, this list of conditions and the following disclaimer. 151.9Smycroft# 2. Redistributions in binary form must reproduce the above copyright 161.9Smycroft# notice, this list of conditions and the following disclaimer in the 171.9Smycroft# documentation and/or other materials provided with the distribution. 181.9Smycroft# 191.9Smycroft# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.9Smycroft# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.9Smycroft# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.9Smycroft# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.9Smycroft# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.9Smycroft# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.9Smycroft# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.9Smycroft# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.9Smycroft# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.9Smycroft# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.9Smycroft# POSSIBILITY OF SUCH DAMAGE. 301.9Smycroft# 311.1Smycroft 321.1Smycroft# 331.1Smycroft# Copyright (c) 1982, 1990 The Regents of the University of California. 341.1Smycroft# All rights reserved. 351.1Smycroft# 361.1Smycroft# This code is derived from software contributed to Berkeley by 371.1Smycroft# William Jolitz. 381.1Smycroft# 391.1Smycroft# Redistribution and use in source and binary forms, with or without 401.1Smycroft# modification, are permitted provided that the following conditions 411.1Smycroft# are met: 421.1Smycroft# 1. Redistributions of source code must retain the above copyright 431.1Smycroft# notice, this list of conditions and the following disclaimer. 441.1Smycroft# 2. Redistributions in binary form must reproduce the above copyright 451.1Smycroft# notice, this list of conditions and the following disclaimer in the 461.1Smycroft# documentation and/or other materials provided with the distribution. 471.76Stsutsui# 3. Neither the name of the University nor the names of its contributors 481.1Smycroft# may be used to endorse or promote products derived from this software 491.1Smycroft# without specific prior written permission. 501.1Smycroft# 511.1Smycroft# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 521.1Smycroft# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 531.1Smycroft# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 541.1Smycroft# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 551.1Smycroft# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 561.1Smycroft# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 571.1Smycroft# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 581.1Smycroft# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 591.1Smycroft# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 601.1Smycroft# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 611.1Smycroft# SUCH DAMAGE. 621.1Smycroft# 631.1Smycroft# @(#)genassym.c 5.11 (Berkeley) 5/10/91 641.1Smycroft# 651.1Smycroft 661.29Sjdolecekif defined(_KERNEL_OPT) 671.8Sthorpejinclude "opt_compat_svr4.h" 681.8Sthorpejinclude "opt_compat_freebsd.h" 691.8Sthorpejinclude "opt_compat_linux.h" 701.41Schristosinclude "opt_compat_netbsd.h" 711.32Sfvdlinclude "opt_multiprocessor.h" 721.61Sbouyerinclude "opt_xen.h" 731.22Sjdolecekendif 741.7Sthorpej 751.47Sadquote #define __MUTEX_PRIVATE 761.47Sadquote #define __RWLOCK_PRIVATE 771.47Sad 781.1Smycroftinclude <sys/param.h> 791.1Smycroftinclude <sys/proc.h> 801.1Smycroftinclude <sys/resourcevar.h> 811.1Smycroftinclude <sys/device.h> 821.1Smycroftinclude <sys/user.h> 831.1Smycroftinclude <sys/mbuf.h> 841.47Sadinclude <sys/mutex.h> 851.47Sadinclude <sys/rwlock.h> 861.47Sad 871.25Sfvdlinclude <netinet/in.h> 881.25Sfvdlinclude <netinet/in_systm.h> 891.25Sfvdlinclude <netinet/ip.h> 901.27Ssommerfeinclude <netinet/ip6.h> 911.25Sfvdlinclude <netinet/ip_var.h> 921.1Smycroft 931.18Sthorpejinclude <uvm/uvm.h> 941.6Smrg 951.1Smycroftinclude <machine/trap.h> 961.1Smycroftinclude <machine/pmap.h> 971.1Smycroftinclude <machine/vmparam.h> 981.33Sfvdlinclude <machine/intr.h> 991.33Sfvdlinclude <machine/types.h> 1001.55Sadinclude <machine/segments.h> 1011.1Smycroft 1021.61Sbouyerifdef XEN 1031.61Sbouyerifdef XEN3 1041.61Sbouyerinclude <xen/xen3-public/sched.h> 1051.61Sbouyerelse 1061.61Sbouyerinclude <xen/xen-public/xen.h> 1071.61Sbouyerendif 1081.61Sbouyerendif 1091.61Sbouyer 1101.22Sjdolecekif defined(_KERNEL) && !defined(_LKM) 1111.33Sfvdlinclude "ioapic.h" 1121.61Sbouyerifndef XEN 1131.45Schristosinclude "apmbios.h" 1141.22Sjdolecekendif 1151.61Sbouyerendif 1161.45Schristosif NAPMBIOS > 0 1171.3Sjtkinclude <machine/bioscall.h> 1181.1Smycroftinclude <machine/apmvar.h> 1191.1Smycroftendif 1201.1Smycroft 1211.41Schristosinclude <compat/sys/signal.h> 1221.41Schristos 1231.1Smycroftifdef COMPAT_SVR4 1241.1Smycroftinclude <compat/svr4/svr4_ucontext.h> 1251.1Smycroftendif 1261.1Smycroft 1271.1Smycroftifdef COMPAT_LINUX 1281.13Sfvdlinclude <compat/linux/common/linux_signal.h> 1291.13Sfvdlinclude <compat/linux/common/linux_machdep.h> 1301.1Smycroftendif 1311.1Smycroft 1321.1Smycroftifdef COMPAT_FREEBSD 1331.1Smycroftinclude <machine/freebsd_machdep.h> 1341.1Smycroftendif 1351.1Smycroft 1361.32Sfvdlifdef MULTIPROCESSOR 1371.32Sfvdlinclude <machine/cpu.h> 1381.32Sfvdlendif 1391.32Sfvdl 1401.33Sfvdlif NIOAPIC > 0 1411.37Sfvdlinclude <machine/i82093reg.h> 1421.33Sfvdlinclude <machine/i82093var.h> 1431.33Sfvdlendif 1441.33Sfvdl 1451.22Sjdolecekif defined(_KERNEL) && !defined(_LKM) 1461.1Smycroftinclude "isa.h" 1471.22Sjdolecekendif 1481.1Smycroftif NISA > 0 1491.14Scgdinclude <machine/isa_machdep.h> 1501.1Smycroftendif 1511.1Smycroft 1521.32Sfvdlinclude <machine/tlog.h> 1531.36Sthorpej 1541.61Sbouyer 1551.52Sadinclude <x86/busdefs.h> 1561.52Sad 1571.36Sthorpejdefine PAGE_SIZE PAGE_SIZE 1581.36Sthorpej 1591.35Sthorpejdefine LSRUN LSRUN 1601.35Sthorpejdefine LSONPROC LSONPROC 1611.1Smycroft 1621.42Syamtdefine PTE_BASE PTE_BASE 1631.42Syamtdefine UPAGES UPAGES 1641.42Syamtdefine USPACE USPACE 1651.44Syamtdefine KSTACK_SIZE KSTACK_SIZE 1661.42Syamtdefine KERNBASE KERNBASE 1671.42Syamtdefine KERNTEXTOFF KERNTEXTOFF 1681.42Syamt 1691.42Syamtdefine PG_RW PG_RW 1701.42Syamtdefine PG_V PG_V 1711.42Syamtdefine PG_KW PG_KW 1721.42Syamtdefine PG_KR PG_KR 1731.57Saddefine PGEX_U PGEX_U 1741.42Syamt 1751.54Syamtdefine L2_SLOT_KERNBASE pl2_pi(KERNBASE) 1761.54Syamtdefine L1_SLOT_KERNBASE pl1_pi(KERNBASE) 1771.54Syamt 1781.54Syamtdefine PDIR_SLOT_PTE PDIR_SLOT_PTE 1791.54Syamtdefine PTE_BASE PTE_BASE 1801.1Smycroft 1811.60Syamtdefine IOMAPSIZE IOMAPSIZE 1821.60Syamt 1831.1Smycroftdefine VM_MAXUSER_ADDRESS (int)VM_MAXUSER_ADDRESS 1841.18Sthorpej 1851.35Sthorpejdefine L_ADDR offsetof(struct lwp, l_addr) 1861.49Syamtdefine L_FLAG offsetof(struct lwp, l_flag) 1871.35Sthorpejdefine L_PROC offsetof(struct lwp, l_proc) 1881.35Sthorpejdefine L_MD_REGS offsetof(struct lwp, l_md.md_regs) 1891.58Saddefine L_CTXSWTCH offsetof(struct lwp, l_ctxswtch) 1901.47Saddefine L_MD_ASTPENDING offsetof(struct lwp, l_md.md_astpending) 1911.62Saddefine L_CPU offsetof(struct lwp, l_cpu) 1921.62Saddefine L_NCSW offsetof(struct lwp, l_ncsw) 1931.66Saddefine L_NOPREEMPT offsetof(struct lwp, l_nopreempt) 1941.66Saddefine L_DOPREEMPT offsetof(struct lwp, l_dopreempt) 1951.1Smycroftdefine P_FLAG offsetof(struct proc, p_flag) 1961.39Sdsldefine P_RASLIST offsetof(struct proc, p_raslist) 1971.24Smycroftdefine P_MD_SYSCALL offsetof(struct proc, p_md.md_syscall) 1981.1Smycroft 1991.49Syamtdefine LW_SYSTEM LW_SYSTEM 2001.1Smycroft 2011.55Saddefine GUFS_SEL GUFS_SEL 2021.55Saddefine GUGS_SEL GUGS_SEL 2031.55Sad 2041.1Smycroftdefine M_DATA offsetof(struct mbuf, m_data) 2051.1Smycroftdefine M_LEN offsetof(struct mbuf, m_len) 2061.1Smycroftdefine M_NEXT offsetof(struct mbuf, m_next) 2071.25Sfvdl 2081.25Sfvdldefine IP_SRC offsetof(struct ip, ip_src) 2091.25Sfvdldefine IP_DST offsetof(struct ip, ip_dst) 2101.27Ssommerfe 2111.27Ssommerfedefine IP6_SRC offsetof(struct ip6_hdr, ip6_src) 2121.27Ssommerfedefine IP6_DST offsetof(struct ip6_hdr, ip6_dst) 2131.1Smycroft 2141.6Smrgdefine V_TRAP offsetof(struct uvmexp, traps) 2151.6Smrgdefine V_INTR offsetof(struct uvmexp, intrs) 2161.1Smycroft 2171.1Smycroftdefine PCB_CR3 offsetof(struct pcb, pcb_cr3) 2181.1Smycroftdefine PCB_EBP offsetof(struct pcb, pcb_ebp) 2191.1Smycroftdefine PCB_ESP offsetof(struct pcb, pcb_esp) 2201.50Saddefine PCB_ESP0 offsetof(struct pcb, pcb_esp0) 2211.1Smycroftdefine PCB_CR0 offsetof(struct pcb, pcb_cr0) 2221.1Smycroftdefine PCB_ONFAULT offsetof(struct pcb, pcb_onfault) 2231.32Sfvdldefine PCB_FPCPU offsetof(struct pcb, pcb_fpcpu) 2241.56Saddefine PCB_FSD offsetof(struct pcb, pcb_fsd) 2251.56Saddefine PCB_GSD offsetof(struct pcb, pcb_gsd) 2261.60Syamtdefine PCB_IOMAP offsetof(struct pcb, pcb_iomap) 2271.1Smycroft 2281.1Smycroftdefine TF_CS offsetof(struct trapframe, tf_cs) 2291.5Smycroftdefine TF_EIP offsetof(struct trapframe, tf_eip) 2301.4Smycroftdefine TF_ERR offsetof(struct trapframe, tf_err) 2311.1Smycroftdefine TF_TRAPNO offsetof(struct trapframe, tf_trapno) 2321.1Smycroftdefine TF_EFLAGS offsetof(struct trapframe, tf_eflags) 2331.1Smycroft 2341.33Sfvdldefine TF_GS offsetof(struct trapframe, tf_gs) 2351.33Sfvdldefine TF_FS offsetof(struct trapframe, tf_fs) 2361.33Sfvdldefine TF_ES offsetof(struct trapframe, tf_es) 2371.33Sfvdldefine TF_DS offsetof(struct trapframe, tf_ds) 2381.33Sfvdldefine TF_EDI offsetof(struct trapframe, tf_edi) 2391.33Sfvdldefine TF_ESI offsetof(struct trapframe, tf_esi) 2401.33Sfvdldefine TF_EBP offsetof(struct trapframe, tf_ebp) 2411.33Sfvdldefine TF_EBX offsetof(struct trapframe, tf_ebx) 2421.33Sfvdldefine TF_EDX offsetof(struct trapframe, tf_edx) 2431.33Sfvdldefine TF_ECX offsetof(struct trapframe, tf_ecx) 2441.33Sfvdldefine TF_EAX offsetof(struct trapframe, tf_eax) 2451.33Sfvdl 2461.33Sfvdldefine TF_PUSHSIZE offsetof(struct trapframe, tf_trapno) 2471.33Sfvdl 2481.1Smycroftdefine FRAMESIZE sizeof(struct trapframe) 2491.1Smycroft 2501.1Smycroftifdef COMPAT_SVR4 2511.1Smycroftdefine SVR4_SIGF_HANDLER offsetof(struct svr4_sigframe, sf_handler) 2521.1Smycroftdefine SVR4_SIGF_UC offsetof(struct svr4_sigframe, sf_uc) 2531.1Smycroftendif 2541.1Smycroft 2551.1Smycroftifdef COMPAT_LINUX 2561.1Smycroftdefine LINUX_SIGF_HANDLER offsetof(struct linux_sigframe, sf_handler) 2571.1Smycroftdefine LINUX_SIGF_SC offsetof(struct linux_sigframe, sf_sc) 2581.34Schristosdefine LINUX_RT_SIGF_HANDLER offsetof(struct linux_rt_sigframe, sf_handler) 2591.38Schristosdefine LINUX_RT_SIGF_UC offsetof(struct linux_rt_sigframe, sf_uc) 2601.1Smycroftendif 2611.1Smycroft 2621.1Smycroftifdef COMPAT_FREEBSD 2631.1Smycroftdefine FREEBSD_SIGF_HANDLER offsetof(struct freebsd_sigframe, sf_handler) 2641.1Smycroftdefine FREEBSD_SIGF_SC offsetof(struct freebsd_sigframe, sf_sc) 2651.1Smycroftendif 2661.1Smycroft 2671.1Smycroftdefine IH_FUN offsetof(struct intrhand, ih_fun) 2681.1Smycroftdefine IH_ARG offsetof(struct intrhand, ih_arg) 2691.33Sfvdldefine IH_LEVEL offsetof(struct intrhand, ih_level) 2701.61Sbouyerifdef XEN 2711.61Sbouyerdefine IH_IPL_NEXT offsetof(struct intrhand, ih_ipl_next) 2721.61Sbouyerelse 2731.1Smycroftdefine IH_NEXT offsetof(struct intrhand, ih_next) 2741.61Sbouyerendif 2751.1Smycroft 2761.45Schristosif NAPMBIOS > 0 2771.1Smycroftdefine APM_CODE32 offsetof(struct apm_connect_info, apm_code32_seg_base) 2781.1Smycroftdefine APM_CODE16 offsetof(struct apm_connect_info, apm_code16_seg_base) 2791.1Smycroftdefine APM_DATA offsetof(struct apm_connect_info, apm_data_seg_base) 2801.1Smycroftdefine APM_CODE32_LEN offsetof(struct apm_connect_info, apm_code32_seg_len) 2811.1Smycroftdefine APM_DATA_LEN offsetof(struct apm_connect_info, apm_data_seg_len) 2821.1Smycroftdefine APM_ENTRY offsetof(struct apm_connect_info, apm_entrypt) 2831.1Smycroftdefine APM_DETAIL offsetof(struct apm_connect_info, apm_detail) 2841.1Smycroftdefine APM_SIZE sizeof(struct apm_connect_info) 2851.10Sjtkdefine BIOSCALLREG_EAX offsetof(struct bioscallregs, EAX) 2861.10Sjtkdefine BIOSCALLREG_EBX offsetof(struct bioscallregs, EBX) 2871.10Sjtkdefine BIOSCALLREG_ECX offsetof(struct bioscallregs, ECX) 2881.10Sjtkdefine BIOSCALLREG_EDX offsetof(struct bioscallregs, EDX) 2891.10Sjtkdefine BIOSCALLREG_ESI offsetof(struct bioscallregs, ESI) 2901.10Sjtkdefine BIOSCALLREG_EDI offsetof(struct bioscallregs, EDI) 2911.10Sjtkdefine BIOSCALLREG_EFLAGS offsetof(struct bioscallregs, EFLAGS) 2921.26Saugustssendif 2931.32Sfvdl 2941.32Sfvdldefine CPU_INFO_SELF offsetof(struct cpu_info, ci_self) 2951.32Sfvdldefine CPU_INFO_RESCHED offsetof(struct cpu_info, ci_want_resched) 2961.40Syamtdefine CPU_INFO_WANT_PMAPLOAD offsetof(struct cpu_info, ci_want_pmapload) 2971.50Saddefine CPU_INFO_PMAP_CPU offsetof(struct cpu_info, ci_pmap_cpu) 2981.40Syamtdefine CPU_INFO_TLBSTATE offsetof(struct cpu_info, ci_tlbstate) 2991.40Syamtdefine TLBSTATE_VALID TLBSTATE_VALID 3001.50Saddefine TLBSTATE_LAZY TLBSTATE_LAZY 3011.50Saddefine TLBSTATE_STALE TLBSTATE_STALE 3021.50Saddefine CPU_INFO_TLB_EVCNT offsetof(struct cpu_info, ci_tlb_evcnt) 3031.35Sthorpejdefine CPU_INFO_CURLWP offsetof(struct cpu_info, ci_curlwp) 3041.77Saddefine CPU_INFO_FPCURLWP offsetof(struct cpu_info, ci_fpcurlwp) 3051.72Saddefine CPU_INFO_CURLDT offsetof(struct cpu_info, ci_curldt) 3061.49Syamtdefine CPU_INFO_IDLELWP offsetof(struct cpu_info, ci_data.cpu_idlelwp) 3071.50Saddefine CPU_INFO_PMAP offsetof(struct cpu_info, ci_pmap) 3081.50Saddefine CPU_INFO_CPUMASK offsetof(struct cpu_info, ci_cpumask) 3091.60Syamtdefine CPU_INFO_TSS offsetof(struct cpu_info, ci_tss) 3101.60Syamtdefine CPU_INFO_TSS_SEL offsetof(struct cpu_info, ci_tss_sel) 3111.60Syamtdefine CPU_INFO_ESP0 offsetof(struct cpu_info, ci_tss.tss_esp0) 3121.60Syamtdefine CPU_INFO_IOBASE offsetof(struct cpu_info, ci_tss.tss_iobase) 3131.60Syamtdefine CPU_INFO_IOMAP offsetof(struct cpu_info, ci_iomap) 3141.63Saddefine IOMAP_INVALOFF IOMAP_INVALOFF 3151.63Saddefine CPU_INFO_NSYSCALL offsetof(struct cpu_info, ci_data.cpu_nsyscall) 3161.74Saddefine CPU_INFO_NTRAP offsetof(struct cpu_info, ci_data.cpu_ntrap) 3171.68Saddefine CPU_INFO_CURPRIORITY offsetof(struct cpu_info, ci_schedstate.spc_curpriority) 3181.69Saddefine CPU_INFO_CC_SKEW offsetof(struct cpu_info, ci_data.cpu_cc_skew) 3191.32Sfvdl 3201.32Sfvdldefine CPU_INFO_VENDOR offsetof(struct cpu_info, ci_vendor[0]) 3211.32Sfvdldefine CPU_INFO_SIGNATURE offsetof(struct cpu_info, ci_signature) 3221.32Sfvdldefine CPU_INFO_FEATURES offsetof(struct cpu_info, ci_feature_flags) 3231.32Sfvdl 3241.32Sfvdldefine CPU_TLOG_OFFSET offsetof(struct cpu_info, ci_tlog_offset) 3251.32Sfvdldefine CPU_TLOG_BASE offsetof(struct cpu_info, ci_tlog_base) 3261.32Sfvdl 3271.32Sfvdldefine CPU_INFO_GDT offsetof(struct cpu_info, ci_gdt) 3281.33Sfvdldefine CPU_INFO_IPENDING offsetof(struct cpu_info, ci_ipending) 3291.33Sfvdldefine CPU_INFO_IMASK offsetof(struct cpu_info, ci_imask) 3301.33Sfvdldefine CPU_INFO_IUNMASK offsetof(struct cpu_info, ci_iunmask) 3311.33Sfvdldefine CPU_INFO_ILEVEL offsetof(struct cpu_info, ci_ilevel) 3321.33Sfvdldefine CPU_INFO_IDEPTH offsetof(struct cpu_info, ci_idepth) 3331.33Sfvdldefine CPU_INFO_ISOURCES offsetof(struct cpu_info, ci_isources) 3341.47Saddefine CPU_INFO_MTX_COUNT offsetof(struct cpu_info, ci_mtx_count) 3351.47Saddefine CPU_INFO_MTX_OLDSPL offsetof(struct cpu_info, ci_mtx_oldspl) 3361.46Syamtdefine CPU_INFO_INTRSTACK offsetof(struct cpu_info, ci_intrstack) 3371.47Saddefine CPU_INFO_ISTATE offsetof(struct cpu_info, ci_istate) 3381.33Sfvdl 3391.71Saddefine ACPI_SUSPEND_GDT offsetof(struct cpu_info, ci_suspend_gdt) 3401.71Saddefine ACPI_SUSPEND_IDT offsetof(struct cpu_info, ci_suspend_idt) 3411.71Saddefine ACPI_SUSPEND_TR offsetof(struct cpu_info, ci_suspend_tr) 3421.71Saddefine ACPI_SUSPEND_LDT offsetof(struct cpu_info, ci_suspend_ldt) 3431.71Saddefine ACPI_SUSPEND_FS offsetof(struct cpu_info, ci_suspend_fs) 3441.71Saddefine ACPI_SUSPEND_GS offsetof(struct cpu_info, ci_suspend_gs) 3451.71Saddefine ACPI_SUSPEND_KGS offsetof(struct cpu_info, ci_suspend_kgs) 3461.71Saddefine ACPI_SUSPEND_EFER offsetof(struct cpu_info, ci_suspend_efer) 3471.71Saddefine ACPI_SUSPEND_REG offsetof(struct cpu_info, ci_suspend_reg) 3481.71Saddefine ACPI_SUSPEND_CR0 offsetof(struct cpu_info, ci_suspend_cr0) 3491.71Saddefine ACPI_SUSPEND_CR2 offsetof(struct cpu_info, ci_suspend_cr2) 3501.71Saddefine ACPI_SUSPEND_CR3 offsetof(struct cpu_info, ci_suspend_cr3) 3511.71Saddefine ACPI_SUSPEND_CR4 offsetof(struct cpu_info, ci_suspend_cr4) 3521.71Saddefine ACPI_SUSPEND_CR8 offsetof(struct cpu_info, ci_suspend_cr8) 3531.59Sjoerg 3541.33Sfvdlif NIOAPIC > 0 3551.75Sdrochnerdefine PIC_IOAPIC offsetof(struct pic, pic_ioapic) 3561.33Sfvdldefine IOAPIC_SC_REG offsetof(struct ioapic_softc, sc_reg) 3571.33Sfvdldefine IOAPIC_SC_DATA offsetof(struct ioapic_softc, sc_data) 3581.33Sfvdldefine PIC_LOCK offsetof(struct pic, pic_lock) 3591.33Sfvdlendif 3601.32Sfvdl 3611.32Sfvdldefine SIZEOF_CPU_INFO sizeof(struct cpu_info) 3621.61Sbouyerdefine SIZEOF_ISTUB sizeof(struct intrstub) 3631.32Sfvdl 3641.61Sbouyerifdef XEN 3651.61Sbouyerdefine SIZEOF_IPLSOURCE sizeof(struct iplsource) 3661.61Sbouyerdefine IS_RECURSE offsetof(struct iplsource, ipl_recurse) 3671.61Sbouyerdefine IS_RESUME offsetof(struct iplsource, ipl_resume) 3681.61Sbouyerdefine IS_HANDLERS offsetof(struct iplsource, ipl_handlers) 3691.61Sbouyerdefine EV_EVCNTL offsetof(struct evcnt, ev_count) 3701.61Sbouyerelse 3711.54Syamtdefine SIZEOF_ISOURCE sizeof(struct intrsource) 3721.54Syamtdefine IS_RECURSE offsetof(struct intrsource, is_recurse) 3731.54Syamtdefine IS_RESUME offsetof(struct intrsource, is_resume) 3741.54Syamtdefine IS_EVCNTLO offsetof(struct intrsource, is_evcnt.ev_count) 3751.54Syamtdefine IS_EVCNTHI offsetof(struct intrsource, is_evcnt.ev_count)+4 3761.54Syamtdefine IS_HANDLERS offsetof(struct intrsource, is_handlers) 3771.54Syamtdefine IS_PIC offsetof(struct intrsource, is_pic) 3781.54Syamtdefine IS_FLAGS offsetof(struct intrsource, is_flags) 3791.54Syamtdefine IS_PIN offsetof(struct intrsource, is_pin) 3801.54Syamtdefine IS_TYPE offsetof(struct intrsource, is_type) 3811.54Syamtdefine IS_MAXLEVEL offsetof(struct intrsource, is_maxlevel) 3821.58Saddefine IS_LWP offsetof(struct intrsource, is_lwp) 3831.61Sbouyerendif 3841.33Sfvdl 3851.32Sfvdldefine TREC_SP offsetof(struct trec, tr_sp) 3861.32Sfvdldefine TREC_HPC offsetof(struct trec, tr_hpc) 3871.32Sfvdldefine TREC_IPC offsetof(struct trec, tr_ipc) 3881.32Sfvdldefine TREC_TSC offsetof(struct trec, tr_tsc) 3891.32Sfvdldefine TREC_LBF offsetof(struct trec, tr_lbf) 3901.32Sfvdldefine TREC_LBT offsetof(struct trec, tr_lbt) 3911.32Sfvdldefine TREC_IBF offsetof(struct trec, tr_ibf) 3921.32Sfvdldefine TREC_IBT offsetof(struct trec, tr_ibt) 3931.32Sfvdl 3941.32Sfvdldefine SIZEOF_TREC sizeof(struct trec) 3951.32Sfvdldefine SIZEOF_TLOG sizeof(struct tlog) 3961.42Syamt 3971.42Syamtdefine IPL_NONE IPL_NONE 3981.68Saddefine IPL_PREEMPT IPL_PREEMPT 3991.42Syamtdefine IPL_SCHED IPL_SCHED 4001.42Syamtdefine IPL_CLOCK IPL_CLOCK 4011.42Syamtdefine IPL_HIGH IPL_HIGH 4021.42Syamtdefine IPL_IPI IPL_IPI 4031.42Syamt 4041.42Syamtdefine IPL_SOFTNET IPL_SOFTNET 4051.42Syamtdefine IPL_SOFTCLOCK IPL_SOFTCLOCK 4061.42Syamtdefine IPL_SOFTSERIAL IPL_SOFTSERIAL 4071.42Syamt 4081.42Syamtdefine LIR_IPI LIR_IPI 4091.42Syamtdefine LIR_TIMER LIR_TIMER 4101.42Syamt 4111.42Syamtdefine SIR_NET SIR_NET 4121.42Syamtdefine SIR_CLOCK SIR_CLOCK 4131.42Syamtdefine SIR_SERIAL SIR_SERIAL 4141.42Syamt 4151.42Syamtdefine IREENT_MAGIC IREENT_MAGIC 4161.42Syamt 4171.42Syamtdefine PSL_AC PSL_AC 4181.42Syamtdefine PSL_MBO PSL_MBO 4191.42Syamtdefine PSL_ID PSL_ID 4201.42Syamtdefine PSL_VM PSL_VM 4211.46Syamtdefine PSL_I PSL_I 4221.47Sad 4231.47Saddefine MTX_IPL offsetof(struct kmutex, u.s.mtxs_ipl) 4241.47Saddefine MTX_LOCK offsetof(struct kmutex, mtx_lock) 4251.47Saddefine MTX_OWNER offsetof(struct kmutex, u.mtxa_owner) 4261.47Sad 4271.47Saddefine RW_OWNER offsetof(struct krwlock, rw_owner) 4281.47Saddefine RW_WRITE_LOCKED RW_WRITE_LOCKED 4291.47Saddefine RW_WRITE_WANTED RW_WRITE_WANTED 4301.47Saddefine RW_READ_INCR RW_READ_INCR 4311.47Saddefine RW_HAS_WAITERS RW_HAS_WAITERS 4321.47Saddefine RW_THREAD RW_THREAD 4331.47Saddefine RW_READER RW_READER 4341.47Saddefine RW_WRITER RW_WRITER 4351.50Sad 4361.50Saddefine MB_POINTER offsetof(struct pmap_mbox, mb_pointer) 4371.50Saddefine MB_GLOBAL offsetof(struct pmap_mbox, mb_global) 4381.50Saddefine MB_ADDR1 offsetof(struct pmap_mbox, mb_addr1) 4391.50Saddefine MB_ADDR2 offsetof(struct pmap_mbox, mb_addr2) 4401.50Saddefine MB_HEAD offsetof(struct pmap_mbox, mb_head) 4411.50Saddefine MB_TAIL offsetof(struct pmap_mbox, mb_tail) 4421.50Sad 4431.50Saddefine PM_CPUS offsetof(struct pmap, pm_cpus) 4441.50Sad 4451.50Saddefine EV_COUNT offsetof(struct evcnt, ev_count) 4461.52Sad 4471.52Saddefine OPTERON_MSR_PASSCODE OPTERON_MSR_PASSCODE 4481.52Sad 4491.52Saddefine X86_BUS_SPACE_IO X86_BUS_SPACE_IO 4501.54Syamt 4511.54Syamtdefine L1_SHIFT L1_SHIFT 4521.54Syamtdefine L2_SHIFT L2_SHIFT 4531.54Syamtdefine L2_FRAME L2_FRAME 4541.54Syamtdefine PGOFSET PGOFSET 4551.54Syamtdefine PGSHIFT PGSHIFT 4561.61Sbouyer 4571.61Sbouyerifdef XEN 4581.65Sceggerdefine CPU_INFO_VCPU offsetof(struct cpu_info, ci_vcpu) 4591.61Sbouyerifdef XEN3 4601.61Sbouyerdefine START_INFO_SHARED_INFO offsetof(struct start_info, shared_info) 4611.61Sbouyerdefine START_INFO_FLAGS offsetof(struct start_info, flags) 4621.78Sceggerdefine START_INFO_CONSOLE_MFN offsetof(struct start_info, console.domU.mfn) 4631.61Sbouyerdefine START_INFO_STORE_MFN offsetof(struct start_info, store_mfn) 4641.61Sbouyerelse 4651.61Sbouyerdefine START_INFO_SHARED_INFO offsetof(start_info_t, shared_info) 4661.61Sbouyerendif 4671.61Sbouyerdefine SIF_INITDOMAIN SIF_INITDOMAIN 4681.65Sceggerdefine EVTCHN_UPCALL_PENDING offsetof(struct vcpu_info, evtchn_upcall_pending) 4691.65Sceggerdefine EVTCHN_UPCALL_MASK offsetof(struct vcpu_info, evtchn_upcall_mask) 4701.61Sbouyer 4711.61Sbouyerdefine HYPERVISOR_sched_op __HYPERVISOR_sched_op 4721.61Sbouyerdefine SCHEDOP_yield SCHEDOP_yield 4731.61Sbouyerendif 4741.61Sbouyer 475