projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9610756
)
mipsel (little endian) support
author
Rich Felker
<dalias@aerifal.cx>
Fri, 13 Jul 2012 01:49:30 +0000
(21:49 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 13 Jul 2012 01:49:30 +0000
(21:49 -0400)
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.
arch/mips/pthread_arch.h
patch
|
blob
|
history
diff --git
a/arch/mips/pthread_arch.h
b/arch/mips/pthread_arch.h
index 60296fd669c3f91c4951540ece0a1a6e1e17138a..f75379cf834deb53c02c31c5f28584b75c0e7a44 100644
(file)
--- 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)