musl/arch
Rich Felker bdb0817599 improve i386 inline syscall asm on non-broken compilers
we have to avoid using ebx unconditionally in asm constraints for
i386, because gcc 3 and 4 and possibly other simplistic compilers
(pcc?) implement PIC via making ebx a fixed-use register, and disallow
its use for anything else. rather than hard-coding knowledge of which
compilers work (at least gcc 5+ and clang), perform a configure test;
this should give us the good codegen on any new compilers we don't yet
know about.

swapping ebx and edx is kept for 1- and 2-arg syscalls because it
avoids having any spills/stack-frame at all in small functions. for
6-arg, if ebx is directly usable, the complex shuffling introduced in
commit c8798ef974 can be avoided, and
ebp can be loaded the same way ebx is in 5-arg syscalls for compilers
that don't support direct use of ebx.
2019-05-11 19:44:21 -04:00
..
aarch64 math: add fp_arch.h with fp_barrier and fp_force_eval 2019-04-17 13:06:43 -04:00
arm arm: add io_pgetevents syscall number from v4.19 2019-03-13 12:32:08 -04:00
generic math: add fp_arch.h with fp_barrier and fp_force_eval 2019-04-17 13:06:43 -04:00
i386 improve i386 inline syscall asm on non-broken compilers 2019-05-11 19:44:21 -04:00
m68k add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
microblaze fix passing of 64-bit syscall arguments on microblaze 2019-05-05 10:52:41 -04:00
mips fix broken posix_fadvise on mips due to missing 7-arg syscall support 2019-05-05 11:24:57 -04:00
mips64 implement inline 5- and 6-argument syscalls for mipsn32 and mips64 2019-04-10 19:56:08 -04:00
mipsn32 fix build regression on mips n32 due to typo in new inline syscall 2019-05-05 11:10:42 -04:00
or1k remove cruft for supposedly-buggy clang from or1k & microblaze syscall_arch 2019-04-10 18:07:51 -04:00
powerpc use inline syscalls for powerpc (32-bit) 2019-04-10 18:34:38 -04:00
powerpc64 powerpc: add PTRACE_SYSEMU from linux v4.20 2019-03-13 12:33:41 -04:00
s390x fix regression in s390x SO_PEERSEC definition 2019-04-23 12:57:16 -04:00
sh move arch-invariant definitions out of bits/ioctl.h 2019-02-07 12:43:19 -05:00
x32 add io_pgetevents and rseq syscall numbers from linux v4.18 2018-12-09 22:29:12 -05:00
x86_64 add io_pgetevents and rseq syscall numbers from linux v4.18 2018-12-09 22:29:12 -05:00