remove external __syscall function and last remaining users
authorRich Felker <dalias@aerifal.cx>
Thu, 11 Apr 2019 00:11:19 +0000 (20:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 11 Apr 2019 00:11:19 +0000 (20:11 -0400)
commit788d5e24ca19c6291cebd8d1ad5b5ed6abf42665
tree1ae614424b48069950baec8ae09699d750fe3414
parent1bcdaeee6e659f1d856717c9aa562a068f2f3bd4
remove external __syscall function and last remaining users

the weak version of __syscall_cp_c was using a tail call to __syscall
to avoid duplicating the 6-argument syscall code inline in small
static-linked programs, but now that __syscall no longer exists, the
inline expansion is no longer duplication.

the syscall.h machinery suppported up to 7 syscall arguments, only via
an external __syscall function, but we presently have no syscall call
points that actually make use of that many, and the kernel only
defines 7-argument calling conventions for arm, powerpc (32-bit), and
sh. if it turns out we need them in the future, they can easily be
added.
18 files changed:
src/internal/aarch64/syscall.s [deleted file]
src/internal/arm/syscall.s [deleted file]
src/internal/i386/syscall.s [deleted file]
src/internal/m68k/syscall.s [deleted file]
src/internal/microblaze/syscall.s [deleted file]
src/internal/mips/syscall.s [deleted file]
src/internal/mips64/syscall.s [deleted file]
src/internal/mipsn32/syscall.s [deleted file]
src/internal/or1k/syscall.s [deleted file]
src/internal/powerpc/syscall.s [deleted file]
src/internal/powerpc64/syscall.s [deleted file]
src/internal/s390x/syscall.s [deleted file]
src/internal/sh/syscall.s [deleted file]
src/internal/syscall.c [deleted file]
src/internal/syscall.h
src/internal/x32/syscall.s [deleted file]
src/internal/x86_64/syscall.s [deleted file]
src/thread/__syscall_cp.c