summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-12 21:49:30 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-12 21:49:30 -0400
commite1e4d6b269dd5c03480d55b031f2932df0490c96 (patch)
tree25a7f51f1f7a4e9ff7f72f868cb928fc92118e41 /arch
parent96107564e2eabbc13800fe7a7d930b67216d0805 (diff)
downloadmusl-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.h2
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)