Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/genassym.c
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <nfs/nfsproto.h> | #include <nfs/nfsproto.h> | ||||
#include <nfsclient/nfs.h> | #include <nfsclient/nfs.h> | ||||
#include <nfs/nfsdiskless.h> | #include <nfs/nfsdiskless.h> | ||||
#ifdef DEV_APIC | #ifdef DEV_APIC | ||||
#include <x86/apicreg.h> | #include <x86/apicreg.h> | ||||
#endif | #endif | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/pcb_ext.h> | |||||
#include <machine/pcb.h> | #include <machine/pcb.h> | ||||
#include <machine/sigframe.h> | #include <machine/sigframe.h> | ||||
#include <machine/vm86.h> | #include <machine/vm86.h> | ||||
#include <machine/proc.h> | #include <machine/proc.h> | ||||
ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace)); | ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace)); | ||||
ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap)); | ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap)); | ||||
ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active)); | ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active)); | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
ASSYM(PCB_DR1, offsetof(struct pcb, pcb_dr1)); | ASSYM(PCB_DR1, offsetof(struct pcb, pcb_dr1)); | ||||
ASSYM(PCB_DR2, offsetof(struct pcb, pcb_dr2)); | ASSYM(PCB_DR2, offsetof(struct pcb, pcb_dr2)); | ||||
ASSYM(PCB_DR3, offsetof(struct pcb, pcb_dr3)); | ASSYM(PCB_DR3, offsetof(struct pcb, pcb_dr3)); | ||||
ASSYM(PCB_DR6, offsetof(struct pcb, pcb_dr6)); | ASSYM(PCB_DR6, offsetof(struct pcb, pcb_dr6)); | ||||
ASSYM(PCB_DR7, offsetof(struct pcb, pcb_dr7)); | ASSYM(PCB_DR7, offsetof(struct pcb, pcb_dr7)); | ||||
ASSYM(PCB_DBREGS, PCB_DBREGS); | ASSYM(PCB_DBREGS, PCB_DBREGS); | ||||
ASSYM(PCB_EXT, offsetof(struct pcb, pcb_ext)); | ASSYM(PCB_EXT, offsetof(struct pcb, pcb_ext)); | ||||
ASSYM(PCB_EXT_TSS, offsetof(struct pcb_ext, ext_tss)); | |||||
ASSYM(PCB_FSD, offsetof(struct pcb, pcb_fsd)); | ASSYM(PCB_FSD, offsetof(struct pcb, pcb_fsd)); | ||||
ASSYM(PCB_GSD, offsetof(struct pcb, pcb_gsd)); | ASSYM(PCB_GSD, offsetof(struct pcb, pcb_gsd)); | ||||
ASSYM(PCB_VM86, offsetof(struct pcb, pcb_vm86)); | ASSYM(PCB_VM86, offsetof(struct pcb, pcb_vm86)); | ||||
ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags)); | ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags)); | ||||
ASSYM(PCB_SAVEFPU, offsetof(struct pcb, pcb_save)); | ASSYM(PCB_SAVEFPU, offsetof(struct pcb, pcb_save)); | ||||
ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); | ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); | ||||
ASSYM(PCB_SIZE, sizeof(struct pcb)); | ASSYM(PCB_SIZE, sizeof(struct pcb)); | ||||
ASSYM(PCB_VM86CALL, PCB_VM86CALL); | ASSYM(PCB_VM86CALL, PCB_VM86CALL); | ||||
ASSYM(PCB_GDT, offsetof(struct pcb, pcb_gdt)); | ASSYM(PCB_GDT, offsetof(struct pcb, pcb_gdt)); | ||||
ASSYM(PCB_IDT, offsetof(struct pcb, pcb_idt)); | ASSYM(PCB_IDT, offsetof(struct pcb, pcb_idt)); | ||||
ASSYM(PCB_LDT, offsetof(struct pcb, pcb_ldt)); | ASSYM(PCB_LDT, offsetof(struct pcb, pcb_ldt)); | ||||
ASSYM(PCB_TR, offsetof(struct pcb, pcb_tr)); | ASSYM(PCB_TR, offsetof(struct pcb, pcb_tr)); | ||||
ASSYM(TF_FS, offsetof(struct trapframe, tf_fs)); | ASSYM(TF_FS, offsetof(struct trapframe, tf_fs)); | ||||
ASSYM(TF_ES, offsetof(struct trapframe, tf_es)); | ASSYM(TF_ES, offsetof(struct trapframe, tf_es)); | ||||
ASSYM(TF_DS, offsetof(struct trapframe, tf_ds)); | ASSYM(TF_DS, offsetof(struct trapframe, tf_ds)); | ||||
ASSYM(TF_TRAPNO, offsetof(struct trapframe, tf_trapno)); | ASSYM(TF_TRAPNO, offsetof(struct trapframe, tf_trapno)); | ||||
ASSYM(TF_ERR, offsetof(struct trapframe, tf_err)); | ASSYM(TF_ERR, offsetof(struct trapframe, tf_err)); | ||||
ASSYM(TF_EIP, offsetof(struct trapframe, tf_eip)); | ASSYM(TF_EIP, offsetof(struct trapframe, tf_eip)); | ||||
ASSYM(TF_CS, offsetof(struct trapframe, tf_cs)); | ASSYM(TF_CS, offsetof(struct trapframe, tf_cs)); | ||||
ASSYM(TF_EFLAGS, offsetof(struct trapframe, tf_eflags)); | ASSYM(TF_EFLAGS, offsetof(struct trapframe, tf_eflags)); | ||||
ASSYM(TF_SZ, sizeof(struct trapframe)); | |||||
ASSYM(SIGF_HANDLER, offsetof(struct sigframe, sf_ahu.sf_handler)); | ASSYM(SIGF_HANDLER, offsetof(struct sigframe, sf_ahu.sf_handler)); | ||||
#ifdef COMPAT_43 | #ifdef COMPAT_43 | ||||
ASSYM(SIGF_SC, offsetof(struct osigframe, sf_siginfo.si_sc)); | ASSYM(SIGF_SC, offsetof(struct osigframe, sf_siginfo.si_sc)); | ||||
#endif | #endif | ||||
ASSYM(SIGF_UC, offsetof(struct sigframe, sf_uc)); | ASSYM(SIGF_UC, offsetof(struct sigframe, sf_uc)); | ||||
#ifdef COMPAT_FREEBSD4 | #ifdef COMPAT_FREEBSD4 | ||||
ASSYM(SIGF_UC4, offsetof(struct sigframe4, sf_uc)); | ASSYM(SIGF_UC4, offsetof(struct sigframe4, sf_uc)); | ||||
Show All 26 Lines | |||||
ASSYM(BI_ESYMTAB, offsetof(struct bootinfo, bi_esymtab)); | ASSYM(BI_ESYMTAB, offsetof(struct bootinfo, bi_esymtab)); | ||||
ASSYM(BI_KERNEND, offsetof(struct bootinfo, bi_kernend)); | ASSYM(BI_KERNEND, offsetof(struct bootinfo, bi_kernend)); | ||||
ASSYM(PC_SIZEOF, sizeof(struct pcpu)); | ASSYM(PC_SIZEOF, sizeof(struct pcpu)); | ||||
ASSYM(PC_PRVSPACE, offsetof(struct pcpu, pc_prvspace)); | ASSYM(PC_PRVSPACE, offsetof(struct pcpu, pc_prvspace)); | ||||
ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); | ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); | ||||
ASSYM(PC_FPCURTHREAD, offsetof(struct pcpu, pc_fpcurthread)); | ASSYM(PC_FPCURTHREAD, offsetof(struct pcpu, pc_fpcurthread)); | ||||
ASSYM(PC_IDLETHREAD, offsetof(struct pcpu, pc_idlethread)); | ASSYM(PC_IDLETHREAD, offsetof(struct pcpu, pc_idlethread)); | ||||
ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); | ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); | ||||
ASSYM(PC_COMMON_TSS, offsetof(struct pcpu, pc_common_tss)); | ASSYM(PC_COMMON_TSSP, offsetof(struct pcpu, pc_common_tssp)); | ||||
ASSYM(PC_COMMON_TSSD, offsetof(struct pcpu, pc_common_tssd)); | ASSYM(PC_COMMON_TSSD, offsetof(struct pcpu, pc_common_tssd)); | ||||
ASSYM(PC_TSS_GDT, offsetof(struct pcpu, pc_tss_gdt)); | ASSYM(PC_TSS_GDT, offsetof(struct pcpu, pc_tss_gdt)); | ||||
ASSYM(PC_FSGS_GDT, offsetof(struct pcpu, pc_fsgs_gdt)); | ASSYM(PC_FSGS_GDT, offsetof(struct pcpu, pc_fsgs_gdt)); | ||||
ASSYM(PC_CURRENTLDT, offsetof(struct pcpu, pc_currentldt)); | ASSYM(PC_CURRENTLDT, offsetof(struct pcpu, pc_currentldt)); | ||||
ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid)); | ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid)); | ||||
ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); | ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); | ||||
ASSYM(PC_PRIVATE_TSS, offsetof(struct pcpu, pc_private_tss)); | ASSYM(PC_PRIVATE_TSS, offsetof(struct pcpu, pc_private_tss)); | ||||
ASSYM(PC_KESP0, offsetof(struct pcpu, pc_kesp0)); | |||||
ASSYM(PC_TRAMPSTK, offsetof(struct pcpu, pc_trampstk)); | |||||
#ifdef DEV_APIC | #ifdef DEV_APIC | ||||
ASSYM(LA_EOI, LAPIC_EOI * LAPIC_MEM_MUL); | ASSYM(LA_EOI, LAPIC_EOI * LAPIC_MEM_MUL); | ||||
ASSYM(LA_ISR, LAPIC_ISR0 * LAPIC_MEM_MUL); | ASSYM(LA_ISR, LAPIC_ISR0 * LAPIC_MEM_MUL); | ||||
#endif | #endif | ||||
ASSYM(KCSEL, GSEL(GCODE_SEL, SEL_KPL)); | ASSYM(KCSEL, GSEL(GCODE_SEL, SEL_KPL)); | ||||
ASSYM(KDSEL, GSEL(GDATA_SEL, SEL_KPL)); | ASSYM(KDSEL, GSEL(GDATA_SEL, SEL_KPL)); | ||||
ASSYM(KPSEL, GSEL(GPRIV_SEL, SEL_KPL)); | ASSYM(KPSEL, GSEL(GPRIV_SEL, SEL_KPL)); | ||||
ASSYM(BC32SEL, GSEL(GBIOSCODE32_SEL, SEL_KPL)); | ASSYM(BC32SEL, GSEL(GBIOSCODE32_SEL, SEL_KPL)); | ||||
ASSYM(GPROC0_SEL, GPROC0_SEL); | ASSYM(GPROC0_SEL, GPROC0_SEL); | ||||
ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame)); | ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame)); | ||||
ASSYM(VM86_STACK_SPACE, VM86_STACK_SPACE); | |||||
ASSYM(PMAP_TRM_MIN_ADDRESS, PMAP_TRM_MIN_ADDRESS); | |||||
#ifdef HWPMC_HOOKS | #ifdef HWPMC_HOOKS | ||||
ASSYM(PMC_FN_USER_CALLCHAIN, PMC_FN_USER_CALLCHAIN); | ASSYM(PMC_FN_USER_CALLCHAIN, PMC_FN_USER_CALLCHAIN); | ||||
#endif | #endif |