Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/riscv/elf_machdep.c
Show All 38 Lines | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/exec.h> | #include <sys/exec.h> | ||||
#include <sys/imgact.h> | #include <sys/imgact.h> | ||||
#include <sys/linker.h> | #include <sys/linker.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/reg.h> | |||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/sysent.h> | #include <sys/sysent.h> | ||||
#include <sys/imgact_elf.h> | #include <sys/imgact_elf.h> | ||||
#include <sys/syscall.h> | #include <sys/syscall.h> | ||||
#include <sys/signalvar.h> | #include <sys/signalvar.h> | ||||
#include <sys/vnode.h> | #include <sys/vnode.h> | ||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | struct sysentvec elf64_freebsd_sysvec = { | ||||
.sv_shared_page_len = PAGE_SIZE, | .sv_shared_page_len = PAGE_SIZE, | ||||
.sv_schedtail = NULL, | .sv_schedtail = NULL, | ||||
.sv_thread_detach = NULL, | .sv_thread_detach = NULL, | ||||
.sv_trap = NULL, | .sv_trap = NULL, | ||||
.sv_hwcap = &elf_hwcap, | .sv_hwcap = &elf_hwcap, | ||||
.sv_machine_arch = riscv_machine_arch, | .sv_machine_arch = riscv_machine_arch, | ||||
.sv_onexec_old = exec_onexec_old, | .sv_onexec_old = exec_onexec_old, | ||||
.sv_onexit = exit_onexit, | .sv_onexit = exit_onexit, | ||||
.sv_regset_begin = SET_BEGIN(__elfN(regset)), | |||||
.sv_regset_end = SET_LIMIT(__elfN(regset)), | |||||
}; | }; | ||||
INIT_SYSENTVEC(elf64_sysvec, &elf64_freebsd_sysvec); | INIT_SYSENTVEC(elf64_sysvec, &elf64_freebsd_sysvec); | ||||
static const char * | static const char * | ||||
riscv_machine_arch(struct proc *p) | riscv_machine_arch(struct proc *p) | ||||
{ | { | ||||
if ((p->p_elf_flags & EF_RISCV_FLOAT_ABI_MASK) == | if ((p->p_elf_flags & EF_RISCV_FLOAT_ABI_MASK) == | ||||
▲ Show 20 Lines • Show All 420 Lines • Show Last 20 Lines |