summaryrefslogtreecommitdiff
path: root/arch/mips/bits
AgeCommit message (Collapse)AuthorLines
2012-09-02avoid "inline" in public headers for strict c89 compatibilityRich Felker-7/+7
while musl itself requires a c99 compiler, some applications insist on being compiled with c89 compilers, and use of "inline" in the headers was breaking them. much of this had been avoided already by just skipping the inline keyword in pre-c99 compilers or modes, but this new unified solution is cleaner and may/should result in better code generation in the default gcc configuration.
2012-08-10fix incorrect ptrdiff_t type on mipsRich Felker-1/+1
2012-08-09add defines for number of sigset_t bytes syscalls expectRich Felker-0/+2
yet another gratuitous mips incompatibility...
2012-08-07further fixes for mips ioctl.h headerRich Felker-4/+4
untested; hopefully it's right now
2012-08-07fix another mips gratuitous-incompatibility bug: ioctl numbersRich Felker-2/+2
2012-08-05fix socket.h on mipsRich Felker-0/+3
why does mips have to be gratuitously incompatible in every possible imaginable way?
2012-07-22add floating point register saving/restoring to mips setjmp/longjmpRich Felker-1/+1
also fix the alignment of jmp_buf to meet the abi. linux always emulates fpu on mips if it's not present, so enabling this code unconditionally is "safe" but may be slow. in the long term it may be preferable to find a way to disable it on soft float builds.
2012-07-12workaround another sendmsg kernel bug on 64-bit machinesRich Felker-0/+7
the kernel wrongly expects the cmsg length field to be size_t instead of socklen_t. in order to work around the issue, we have to impose a length limit and copy to a local buffer. the length limit should be more than sufficient for any real-world use; these headers are only used for passing file descriptors and permissions between processes over unix sockets.
2012-07-12fix redef of sigprocmask constants on mipsRich Felker-0/+3
this fix is easier than trying to reorder the header stuff
2012-07-12more mips bits-header fixesRich Felker-2/+6
signal handling was very broken because of this
2012-07-12fix mips syscalls with long long argsRich Felker-1/+1
like arm, mips requires 64-bit arguments to be "aligned" on an even register boundary.
2012-07-12fix mips mcontext_t structure sizeRich Felker-1/+5
otherwise offs in ucontext_t will be wrong, and break code that inspects or modifies the signal makes (including cancellation code).
2012-07-11fix MAP_ANONYMOUS value for mips, remove cruft copied from i386Rich Felker-2/+1
2012-07-11initial version of mips (o32) port, based on work by Richard Pennington (rdp)Rich Felker-0/+1809
basically, this version of the code was obtained by starting with rdp's work from his ellcc source tree, adapting it to musl's build system and coding style, auditing the bits headers for discrepencies with kernel definitions or glibc/LSB ABI or large file issues, fixing up incompatibility with the old binutils from aboriginal linux, and adding some new special cases to deal with the oddities of sigaction and pipe syscall interfaces on mips. at present, minimal test programs work, but some interfaces are broken or missing. threaded programs probably will not link.