MIPS/bionic — Issue #1: Please do not assume every mips CPU to be MIPS32R2-compatible
Author: lone-
Created: 2012-02-14 08:35:03+00:00
State: open

diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h
index bf6fe5b..c2f59af 100644
--- a/libc/private/bionic_tls.h
+++ b/libc/private/bionic_tls.h
@@ -101,7 +101,7 @@ extern int __set_tls(void *ptr);
# else /* !HAVE_ARM_TLS_REGISTER */
# define __get_tls() ( *((volatile void **) 0xffff0ff0) )
# endif
-#elif defined(__mips__)
+#elif defined(_MIPS_ARCH_MIPS32R2)
# define __get_tls() \
({ register unsigned int __val; \
asm (".set push\n\t" \