Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/riscv/genassym.c
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
#include <machine/riscvreg.h> | #include <machine/riscvreg.h> | ||||
#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> | |||||
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(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)); | ||||
Show All 27 Lines | |||||
ASSYM(TF_TP, offsetof(struct trapframe, tf_tp)); | ASSYM(TF_TP, offsetof(struct trapframe, tf_tp)); | ||||
ASSYM(TF_T, offsetof(struct trapframe, tf_t)); | ASSYM(TF_T, offsetof(struct trapframe, tf_t)); | ||||
ASSYM(TF_S, offsetof(struct trapframe, tf_s)); | ASSYM(TF_S, offsetof(struct trapframe, tf_s)); | ||||
ASSYM(TF_A, offsetof(struct trapframe, tf_a)); | ASSYM(TF_A, offsetof(struct trapframe, tf_a)); | ||||
ASSYM(TF_SEPC, offsetof(struct trapframe, tf_sepc)); | ASSYM(TF_SEPC, offsetof(struct trapframe, tf_sepc)); | ||||
ASSYM(TF_STVAL, offsetof(struct trapframe, tf_stval)); | ASSYM(TF_STVAL, offsetof(struct trapframe, tf_stval)); | ||||
ASSYM(TF_SCAUSE, offsetof(struct trapframe, tf_scause)); | ASSYM(TF_SCAUSE, offsetof(struct trapframe, tf_scause)); | ||||
ASSYM(TF_SSTATUS, offsetof(struct trapframe, tf_sstatus)); | ASSYM(TF_SSTATUS, offsetof(struct trapframe, tf_sstatus)); | ||||
ASSYM(RISCV_BOOTPARAMS_SIZE, sizeof(struct riscv_bootparams)); |