musl/arch/mips64
Rich Felker 5db475f0b9 work around negated error code bug on some mips kernels
on all mips variants, Linux did (and maybe still does) have some
syscall return paths that wrongly return both the error flag in r7 and
a negated error code in r2. in particular this happened for at least
some causes of ENOSYS.

add an extra check to only negate the error code if it's positive to
begin with.

bug report and concept for patch by Andreas Dröscher.
2020-03-14 21:23:37 -04:00
..
bits mips: add clone3 syscall numbers from linux v5.4 2019-12-30 18:14:08 -05:00
atomic_arch.h add support for mips and mips64 r6 isa 2016-04-03 10:42:37 +00:00
crt_arch.h add mips64 port 2016-03-06 17:41:56 +00:00
ksigaction.h apply hidden visibility to sigreturn code fragments 2018-09-12 14:34:34 -04:00
kstat.h remove mips/n32/64 stat struct hacks from syscall machinery 2019-07-18 19:38:37 -04:00
pthread_arch.h make thread-pointer-loading asm non-volatile 2018-10-16 14:11:46 -04:00
reloc.h fix build regression on mips64 due to endian.h removal 2019-11-05 10:15:11 -05:00
syscall_arch.h work around negated error code bug on some mips kernels 2020-03-14 21:23:37 -04:00