musl/arch
Rich Felker f61be1f875 fix mips struct stat dev_t members for big endian
the mips version of this structure on the kernel side wrongly has
32-bit type rather than 64-bit type. fortunately there is adjacent
padding to bring it up to 64 bits, and on little-endian, this allows
us to treat the adjacent kernel st_dev and st_pad0[0] as as single
64-bit dev_t. however, on big endian, such treatment results in the
upper and lower 32-bit parts of the dev_t value being swapped. for the
purpose of just comparing st_dev values this did not break anything,
but it precluded actually processing the device numbers as major/minor
values.

since the broken kernel behavior that needs to be worked around is
isolated to one arch, I put the workarounds in syscall_arch.h rather
than adding a stat fixup path in the common code. on little endian
mips, the added code optimizes out completely.

the changes necessary were incompatible with the way the __asm_syscall
macro was factored so I just removed it and flattened the individual
__syscallN functions. this arguably makes the code easier to read and
understand, anyway.
2014-07-19 23:37:21 -04:00
..
arm refactor to remove arch-specific relocation code from dynamic linker 2014-06-18 02:44:02 -04:00
i386 add tlsdesc support for i386 2014-06-19 02:50:45 -04:00
microblaze fix microblaze atomic store 2014-07-19 18:23:24 -04:00
mips fix mips struct stat dev_t members for big endian 2014-07-19 23:37:21 -04:00
or1k fix or1k atomic store 2014-07-19 20:42:15 -04:00
powerpc fix missing barriers in powerpc atomic store 2014-07-19 18:34:10 -04:00
sh refactor to remove arch-specific relocation code from dynamic linker 2014-06-18 02:44:02 -04:00
x32 refactor to remove arch-specific relocation code from dynamic linker 2014-06-18 02:44:02 -04:00
x86_64 add tlsdesc support for x86_64 2014-06-19 15:26:04 -04:00