Преглед на файлове

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.
Rich Felker преди 12 години
родител
ревизия
e1e4d6b269
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      arch/mips/pthread_arch.h

+ 1 - 1
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)