Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/elf_machdep.c
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | struct sysentvec elf64_freebsd_sysvec_la48 = { | ||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args, | .sv_fetch_syscall_args = cpu_fetch_syscall_args, | ||||
.sv_syscallnames = syscallnames, | .sv_syscallnames = syscallnames, | ||||
.sv_shared_page_base = SHAREDPAGE_LA48, | .sv_shared_page_base = SHAREDPAGE_LA48, | ||||
.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_stackgap = elf64_stackgap, | .sv_stackgap = elf64_stackgap, | ||||
.sv_onexec_old = exec_onexec_old, | |||||
.sv_onexit = exit_onexit, | |||||
}; | }; | ||||
struct sysentvec elf64_freebsd_sysvec_la57 = { | struct sysentvec elf64_freebsd_sysvec_la57 = { | ||||
.sv_size = SYS_MAXSYSCALL, | .sv_size = SYS_MAXSYSCALL, | ||||
.sv_table = sysent, | .sv_table = sysent, | ||||
.sv_transtrap = NULL, | .sv_transtrap = NULL, | ||||
.sv_fixup = __elfN(freebsd_fixup), | .sv_fixup = __elfN(freebsd_fixup), | ||||
.sv_sendsig = sendsig, | .sv_sendsig = sendsig, | ||||
Show All 22 Lines | struct sysentvec elf64_freebsd_sysvec_la57 = { | ||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args, | .sv_fetch_syscall_args = cpu_fetch_syscall_args, | ||||
.sv_syscallnames = syscallnames, | .sv_syscallnames = syscallnames, | ||||
.sv_shared_page_base = SHAREDPAGE_LA57, | .sv_shared_page_base = SHAREDPAGE_LA57, | ||||
.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_stackgap = elf64_stackgap, | .sv_stackgap = elf64_stackgap, | ||||
.sv_onexec_old = exec_onexec_old, | |||||
.sv_onexit = exit_onexit, | |||||
}; | }; | ||||
static void | static void | ||||
amd64_init_sysvecs(void *arg) | amd64_init_sysvecs(void *arg) | ||||
{ | { | ||||
amd64_lower_shared_page(&elf64_freebsd_sysvec_la48); | amd64_lower_shared_page(&elf64_freebsd_sysvec_la48); | ||||
if (la57) { | if (la57) { | ||||
exec_sysvec_init(&elf64_freebsd_sysvec_la57); | exec_sysvec_init(&elf64_freebsd_sysvec_la57); | ||||
▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines |