Use a shorter system call invocation template for system calls in the range
authormiod <miod@openbsd.org>
Fri, 2 Sep 2022 06:19:04 +0000 (06:19 +0000)
committermiod <miod@openbsd.org>
Fri, 2 Sep 2022 06:19:04 +0000 (06:19 +0000)
commit3e492f6eb5c9124bd14f3f57338f09e914ed8d63
tree24330eb72fb465418907de195873384638fc1c45
parente67f83d8f6f9dff1b14b5c51eea147f31633f57a
Use a shorter system call invocation template for system calls in the range
0-127, where immediate addressing can be used to load the system call number
in r0, rather than performing a memory load using pc-relative addressing.

No functional change, but rm(1) runs a couple cycles faster per file now.
lib/libc/arch/sh/SYS.h
lib/libc/arch/sh/sys/brk.S
lib/libc/arch/sh/sys/sbrk.S
lib/libc/arch/sh/sys/sigprocmask.S
lib/libc/arch/sh/sys/sigsuspend.S
lib/libc/arch/sh/sys/tfork_thread.S
libexec/ld.so/sh/SYS.h