We only have one syscall table: inline sysent/SYS_MAXSYSCALL and
authorguenther <guenther@openbsd.org>
Thu, 9 Dec 2021 00:26:10 +0000 (00:26 +0000)
committerguenther <guenther@openbsd.org>
Thu, 9 Dec 2021 00:26:10 +0000 (00:26 +0000)
commitf231ff592234d4113ad95dfebc2f4a80e9a2c113
treedc3b48f0d40b6642638e899191d2d7a391d51069
parent0674b9825d2b89985e4947e13f7ff95932dbab72
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@
23 files changed:
sys/arch/alpha/alpha/trap.c
sys/arch/amd64/amd64/trap.c
sys/arch/arm/arm/syscall.c
sys/arch/arm64/arm64/syscall.c
sys/arch/hppa/hppa/trap.c
sys/arch/i386/i386/trap.c
sys/arch/m88k/m88k/trap.c
sys/arch/mips64/mips64/trap.c
sys/arch/powerpc/powerpc/trap.c
sys/arch/powerpc64/powerpc64/syscall.c
sys/arch/riscv64/riscv64/syscall.c
sys/arch/sh/sh/trap.c
sys/arch/sparc64/sparc64/trap.c
sys/dev/dt/dt_prov_syscall.c
sys/kern/exec_elf.c
sys/kern/init_main.c
sys/kern/init_sysent.c
sys/kern/kern_exec.c
sys/kern/kern_xxx.c
sys/kern/makesyscalls.sh
sys/sys/exec.h
sys/sys/proc.h
sys/sys/systm.h