diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-07-12 21:49:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-07-12 21:49:30 -0400 |
commit | e1e4d6b269dd5c03480d55b031f2932df0490c96 (patch) | |
tree | 25a7f51f1f7a4e9ff7f72f868cb928fc92118e41 /arch | |
parent | 96107564e2eabbc13800fe7a7d930b67216d0805 (diff) | |
download | musl-e1e4d6b269dd5c03480d55b031f2932df0490c96.tar.gz musl-e1e4d6b269dd5c03480d55b031f2932df0490c96.tar.bz2 musl-e1e4d6b269dd5c03480d55b031f2932df0490c96.tar.xz musl-e1e4d6b269dd5c03480d55b031f2932df0490c96.zip |
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.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/pthread_arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pthread_arch.h b/arch/mips/pthread_arch.h index 60296fd6..f75379cf 100644 --- a/arch/mips/pthread_arch.h +++ b/arch/mips/pthread_arch.h @@ -5,4 +5,4 @@ static inline struct pthread *__pthread_self() return self; } -#define CANCEL_REG_IP 3 +#define CANCEL_REG_IP (3-(union {int __i; char __b;}){1}.__b) |