mirror of
git://git.musl-libc.org/musl
synced 2024-12-24 15:43:06 +00:00
6315004f61
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.
9 lines
172 B
C
9 lines
172 B
C
static inline struct pthread *__pthread_self()
|
|
{
|
|
struct pthread *self;
|
|
__asm__ __volatile__ (".word 0x7c03e83b" : "=v" (self) );
|
|
return self;
|
|
}
|
|
|
|
#define CANCEL_REG_IP 3
|