Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-01 09:01:40 +00:00
Code Issues Projects Releases Wiki Activity
musl/arch/mips/pthread_arch.h

9 lines
210 B
C
Raw Normal View History

initial version of mips (o32) port, based on work by Richard Pennington (rdp) 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.
2012-07-11 04:22:13 -04:00
static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ __volatile__ (".word 0x7c03e83b" : "=v" (self) );
return self;
}
mipsel (little endian) support the fields in the mcontext_t are long long (for no good reason) even on 32-bit mips, so the offset of the instruction pointer (as a word) varies depending on endianness.
2012-07-12 21:49:30 -04:00
#define CANCEL_REG_IP (3-(union {int __i; char __b;}){1}.__b)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 60ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API