Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/genassym.c
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
ASSYM(PCB_LSTAR, offsetof(struct pcb, pcb_lstar)); | ASSYM(PCB_LSTAR, offsetof(struct pcb, pcb_lstar)); | ||||
ASSYM(PCB_CSTAR, offsetof(struct pcb, pcb_cstar)); | ASSYM(PCB_CSTAR, offsetof(struct pcb, pcb_cstar)); | ||||
ASSYM(PCB_SFMASK, offsetof(struct pcb, pcb_sfmask)); | ASSYM(PCB_SFMASK, offsetof(struct pcb, pcb_sfmask)); | ||||
ASSYM(PCB_SIZE, sizeof(struct pcb)); | ASSYM(PCB_SIZE, sizeof(struct pcb)); | ||||
ASSYM(PCB_FULL_IRET, PCB_FULL_IRET); | ASSYM(PCB_FULL_IRET, PCB_FULL_IRET); | ||||
ASSYM(PCB_DBREGS, PCB_DBREGS); | ASSYM(PCB_DBREGS, PCB_DBREGS); | ||||
ASSYM(PCB_32BIT, PCB_32BIT); | ASSYM(PCB_32BIT, PCB_32BIT); | ||||
ASSYM(COMMON_TSS_RSP0, offsetof(struct amd64tss, tss_rsp0)); | ASSYM(TSS_RSP0, offsetof(struct amd64tss, tss_rsp0)); | ||||
ASSYM(TF_R15, offsetof(struct trapframe, tf_r15)); | ASSYM(TF_R15, offsetof(struct trapframe, tf_r15)); | ||||
ASSYM(TF_R14, offsetof(struct trapframe, tf_r14)); | ASSYM(TF_R14, offsetof(struct trapframe, tf_r14)); | ||||
ASSYM(TF_R13, offsetof(struct trapframe, tf_r13)); | ASSYM(TF_R13, offsetof(struct trapframe, tf_r13)); | ||||
ASSYM(TF_R12, offsetof(struct trapframe, tf_r12)); | ASSYM(TF_R12, offsetof(struct trapframe, tf_r12)); | ||||
ASSYM(TF_R11, offsetof(struct trapframe, tf_r11)); | ASSYM(TF_R11, offsetof(struct trapframe, tf_r11)); | ||||
ASSYM(TF_R10, offsetof(struct trapframe, tf_r10)); | ASSYM(TF_R10, offsetof(struct trapframe, tf_r10)); | ||||
ASSYM(TF_R9, offsetof(struct trapframe, tf_r9)); | ASSYM(TF_R9, offsetof(struct trapframe, tf_r9)); | ||||
Show All 16 Lines | |||||
ASSYM(TF_DS, offsetof(struct trapframe, tf_ds)); | ASSYM(TF_DS, offsetof(struct trapframe, tf_ds)); | ||||
ASSYM(TF_ES, offsetof(struct trapframe, tf_es)); | ASSYM(TF_ES, offsetof(struct trapframe, tf_es)); | ||||
ASSYM(TF_FS, offsetof(struct trapframe, tf_fs)); | ASSYM(TF_FS, offsetof(struct trapframe, tf_fs)); | ||||
ASSYM(TF_GS, offsetof(struct trapframe, tf_gs)); | ASSYM(TF_GS, offsetof(struct trapframe, tf_gs)); | ||||
ASSYM(TF_FLAGS, offsetof(struct trapframe, tf_flags)); | ASSYM(TF_FLAGS, offsetof(struct trapframe, tf_flags)); | ||||
ASSYM(TF_SIZE, sizeof(struct trapframe)); | ASSYM(TF_SIZE, sizeof(struct trapframe)); | ||||
ASSYM(TF_HASSEGS, TF_HASSEGS); | ASSYM(TF_HASSEGS, TF_HASSEGS); | ||||
ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); | |||||
ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); | |||||
ASSYM(PTI_ERR, offsetof(struct pti_frame, pti_err)); | |||||
ASSYM(PTI_RIP, offsetof(struct pti_frame, pti_rip)); | |||||
ASSYM(PTI_CS, offsetof(struct pti_frame, pti_cs)); | |||||
ASSYM(PTI_RFLAGS, offsetof(struct pti_frame, pti_rflags)); | |||||
ASSYM(PTI_RSP, offsetof(struct pti_frame, pti_rsp)); | |||||
ASSYM(PTI_SS, offsetof(struct pti_frame, pti_ss)); | |||||
ASSYM(PTI_SIZE, sizeof(struct pti_frame)); | |||||
ASSYM(SIGF_HANDLER, offsetof(struct sigframe, sf_ahu.sf_handler)); | ASSYM(SIGF_HANDLER, offsetof(struct sigframe, sf_ahu.sf_handler)); | ||||
ASSYM(SIGF_UC, offsetof(struct sigframe, sf_uc)); | ASSYM(SIGF_UC, offsetof(struct sigframe, sf_uc)); | ||||
ASSYM(UC_EFLAGS, offsetof(ucontext_t, uc_mcontext.mc_rflags)); | ASSYM(UC_EFLAGS, offsetof(ucontext_t, uc_mcontext.mc_rflags)); | ||||
ASSYM(ENOENT, ENOENT); | ASSYM(ENOENT, ENOENT); | ||||
ASSYM(EFAULT, EFAULT); | ASSYM(EFAULT, EFAULT); | ||||
ASSYM(ENAMETOOLONG, ENAMETOOLONG); | ASSYM(ENAMETOOLONG, ENAMETOOLONG); | ||||
ASSYM(MAXCOMLEN, MAXCOMLEN); | ASSYM(MAXCOMLEN, MAXCOMLEN); | ||||
ASSYM(MAXPATHLEN, MAXPATHLEN); | ASSYM(MAXPATHLEN, MAXPATHLEN); | ||||
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_CPUID, offsetof(struct pcpu, pc_cpuid)); | ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid)); | ||||
ASSYM(PC_SCRATCH_RSP, offsetof(struct pcpu, pc_scratch_rsp)); | ASSYM(PC_SCRATCH_RSP, offsetof(struct pcpu, pc_scratch_rsp)); | ||||
ASSYM(PC_SCRATCH_RAX, offsetof(struct pcpu, pc_scratch_rax)); | |||||
ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); | ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); | ||||
ASSYM(PC_TSSP, offsetof(struct pcpu, pc_tssp)); | ASSYM(PC_TSSP, offsetof(struct pcpu, pc_tssp)); | ||||
ASSYM(PC_RSP0, offsetof(struct pcpu, pc_rsp0)); | ASSYM(PC_RSP0, offsetof(struct pcpu, pc_rsp0)); | ||||
ASSYM(PC_FS32P, offsetof(struct pcpu, pc_fs32p)); | ASSYM(PC_FS32P, offsetof(struct pcpu, pc_fs32p)); | ||||
ASSYM(PC_GS32P, offsetof(struct pcpu, pc_gs32p)); | ASSYM(PC_GS32P, offsetof(struct pcpu, pc_gs32p)); | ||||
ASSYM(PC_LDT, offsetof(struct pcpu, pc_ldt)); | ASSYM(PC_LDT, offsetof(struct pcpu, pc_ldt)); | ||||
ASSYM(PC_COMMONTSSP, offsetof(struct pcpu, pc_commontssp)); | ASSYM(PC_COMMONTSSP, offsetof(struct pcpu, pc_commontssp)); | ||||
ASSYM(PC_TSS, offsetof(struct pcpu, pc_tss)); | ASSYM(PC_TSS, offsetof(struct pcpu, pc_tss)); | ||||
ASSYM(PC_PM_SAVE_CNT, offsetof(struct pcpu, pc_pm_save_cnt)); | ASSYM(PC_PM_SAVE_CNT, offsetof(struct pcpu, pc_pm_save_cnt)); | ||||
ASSYM(PC_KCR3, offsetof(struct pcpu, pc_kcr3)); | |||||
ASSYM(PC_UCR3, offsetof(struct pcpu, pc_ucr3)); | |||||
ASSYM(PC_PTI_STACK, offsetof(struct pcpu, pc_pti_stack)); | |||||
ASSYM(PC_PTI_STACK_SZ, PC_PTI_STACK_SZ); | |||||
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); | ||||
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(KUCSEL, GSEL(GUCODE_SEL, SEL_UPL)); | ASSYM(KUCSEL, GSEL(GUCODE_SEL, SEL_UPL)); | ||||
ASSYM(KUDSEL, GSEL(GUDATA_SEL, SEL_UPL)); | ASSYM(KUDSEL, GSEL(GUDATA_SEL, SEL_UPL)); | ||||
Show All 12 Lines |