summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2021-12-09 00:26:12 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2021-12-09 00:26:12 +0000
commit7e6e414e2c08159131c872247dcdcf8ef812a294 (patch)
treeca5f0e06b96c8fcbbcc7167df41d831d6f3302d3 /sys/kern/init_main.c
parentb6288ade839f9de0cd569d091510068f0e78bb51 (diff)
We only have one syscall table: inline sysent/SYS_MAXSYSCALL and
SYS_syscall as the nosys() function into the MD syscall entry routines and the SYSCALL_DEBUG support. Adjust alpha's syscall check to match the other archs. Also, make sysent const to get it into .rodata. With that, 'struct emul' is unused: delete it and all its references ok millert@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index fce15e4af6e..423f4cffa5f 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.312 2021/12/07 22:17:02 guenther Exp $ */
+/* $OpenBSD: init_main.c,v 1.313 2021/12/09 00:26:10 guenther Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -154,12 +154,6 @@ void timeout_proc_init(void);
void pool_gc_pages(void *);
void percpu_init(void);
-struct emul emul_native = {
- SYS_syscall,
- SYS_MAXSYSCALL,
- sysent,
-};
-
#ifdef DIAGNOSTIC
int pdevinit_done = 0;
#endif
@@ -297,7 +291,6 @@ main(void *framep)
atomic_setbits_int(&p->p_flag, P_SYSTEM);
p->p_stat = SONPROC;
pr->ps_nice = NZERO;
- pr->ps_emul = &emul_native;
strlcpy(pr->ps_comm, "swapper", sizeof(pr->ps_comm));
/* Init timeouts. */
@@ -416,7 +409,7 @@ main(void *framep)
kqueue_init_percpu();
uvm_init_percpu();
- /* init exec and emul */
+ /* init exec */
init_exec();
/* Start the scheduler */