Changeset View
Changeset View
Standalone View
Standalone View
head/sys/riscv/riscv/genassym.c
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
#include <machine/frame.h> | #include <machine/frame.h> | ||||
#include <machine/pcb.h> | #include <machine/pcb.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/proc.h> | #include <machine/proc.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#include <machine/pte.h> | #include <machine/pte.h> | ||||
#include <machine/intr.h> | #include <machine/intr.h> | ||||
#include <machine/machdep.h> | #include <machine/machdep.h> | ||||
#include <machine/vmparam.h> | |||||
ASSYM(KERNBASE, KERNBASE); | ASSYM(KERNBASE, KERNBASE); | ||||
ASSYM(VM_MAXUSER_ADDRESS, VM_MAXUSER_ADDRESS); | ASSYM(VM_MAXUSER_ADDRESS, VM_MAXUSER_ADDRESS); | ||||
ASSYM(VM_MAX_KERNEL_ADDRESS, VM_MAX_KERNEL_ADDRESS); | ASSYM(VM_MAX_KERNEL_ADDRESS, VM_MAX_KERNEL_ADDRESS); | ||||
ASSYM(VM_EARLY_DTB_ADDRESS, VM_EARLY_DTB_ADDRESS); | |||||
ASSYM(TDF_ASTPENDING, TDF_ASTPENDING); | ASSYM(TDF_ASTPENDING, TDF_ASTPENDING); | ||||
ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED); | ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED); | ||||
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_RA, offsetof(struct pcb, pcb_ra)); | ASSYM(PCB_RA, offsetof(struct pcb, pcb_ra)); | ||||
ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp)); | ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp)); | ||||
ASSYM(PCB_GP, offsetof(struct pcb, pcb_gp)); | ASSYM(PCB_GP, offsetof(struct pcb, pcb_gp)); | ||||
Show All 28 Lines | |||||
ASSYM(TF_SSTATUS, offsetof(struct trapframe, tf_sstatus)); | ASSYM(TF_SSTATUS, offsetof(struct trapframe, tf_sstatus)); | ||||
ASSYM(RISCV_BOOTPARAMS_SIZE, sizeof(struct riscv_bootparams)); | ASSYM(RISCV_BOOTPARAMS_SIZE, sizeof(struct riscv_bootparams)); | ||||
ASSYM(RISCV_BOOTPARAMS_KERN_L1PT, offsetof(struct riscv_bootparams, kern_l1pt)); | ASSYM(RISCV_BOOTPARAMS_KERN_L1PT, offsetof(struct riscv_bootparams, kern_l1pt)); | ||||
ASSYM(RISCV_BOOTPARAMS_KERN_PHYS, offsetof(struct riscv_bootparams, kern_phys)); | ASSYM(RISCV_BOOTPARAMS_KERN_PHYS, offsetof(struct riscv_bootparams, kern_phys)); | ||||
ASSYM(RISCV_BOOTPARAMS_KERN_STACK, offsetof(struct riscv_bootparams, | ASSYM(RISCV_BOOTPARAMS_KERN_STACK, offsetof(struct riscv_bootparams, | ||||
kern_stack)); | kern_stack)); | ||||
ASSYM(RISCV_BOOTPARAMS_DTBP_VIRT, offsetof(struct riscv_bootparams, dtbp_virt)); | ASSYM(RISCV_BOOTPARAMS_DTBP_VIRT, offsetof(struct riscv_bootparams, dtbp_virt)); | ||||
ASSYM(RISCV_BOOTPARAMS_DTBP_PHYS, offsetof(struct riscv_bootparams, dtbp_phys)); |