Skip to content

Please do not assume every mips CPU to be MIPS32R2-compatible #1

Description

@lone0

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"            \

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions