diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2021-12-07 22:17:04 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2021-12-07 22:17:04 +0000 |
commit | d480c9d545b584076d280205cc39f690b979be45 (patch) | |
tree | 436b8f6a5aecfc20be39aabdcce0492fceaf7642 /sys/kern/init_main.c | |
parent | 384a2c088bee39ff5ced282af8dc4078919311dd (diff) |
Delete the last emulation callbacks: we're Just ELF, so declare
exec_elf_fixup() and coredump_elf() in <sys/exec_elf.h> and call
them and the MD setregs() directly in kern_exec.c and kern_sig.c
Also delete e_name[] (only used by sysctl), e_errno (unused), and
e_syscallnames[] (only used by SYSCALL_DEBUG) and constipate
syscallnames to 'const char *const[]'
ok kettenis@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 8060a6e457a..fce15e4af6e 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.311 2021/12/07 17:51:04 guenther Exp $ */ +/* $OpenBSD: init_main.c,v 1.312 2021/12/07 22:17:02 guenther Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -154,24 +154,10 @@ void timeout_proc_init(void); void pool_gc_pages(void *); void percpu_init(void); -#ifdef SYSCALL_DEBUG -extern char *syscallnames[]; -#endif - struct emul emul_native = { - "native", - NULL, SYS_syscall, SYS_MAXSYSCALL, sysent, -#ifdef SYSCALL_DEBUG - syscallnames, -#else - NULL, -#endif - setregs, - NULL, /* fixup */ - NULL, /* coredump */ }; #ifdef DIAGNOSTIC |