Since no system call takes more than 6 arguments, and no more than one
authormiod <miod@openbsd.org>
Thu, 11 Jan 2024 19:16:26 +0000 (19:16 +0000)
committermiod <miod@openbsd.org>
Thu, 11 Jan 2024 19:16:26 +0000 (19:16 +0000)
commit82f13a2768c269a4d86d3b7e9122e229737a9574
tree21333412b5d9891e4e2504151aabe80af112ada7
parentc069659183f0d17034b0869e8f990e6330e6c06c
Since no system call takes more than 6 arguments, and no more than one
off_t argument, there is no need to process more than 6 arguments on
64-bit platforms and 8 on 32-bit platforms.

Make the syscall argument gathering code simpler by removing never-used code
to fetch more arguments from the stack, and local argument arrays when pointing
to the trap frame does the job.

ok guenther@ jsing@
sys/arch/alpha/alpha/trap.c
sys/arch/amd64/amd64/trap.c
sys/arch/arm64/arm64/syscall.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/sparc64/sparc64/trap.c