Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3822)

Unified Diff: fusl/arch/arm/pthread_arch.h

Issue 1724903002: [fusl] Remove code for unsupported architectures (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/arch/arm/crt_arch.h ('k') | fusl/arch/arm/reloc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/arch/arm/pthread_arch.h
diff --git a/fusl/arch/arm/pthread_arch.h b/fusl/arch/arm/pthread_arch.h
deleted file mode 100644
index 8702eadde3378d2fce647a752c9d9fc4f34b2e9f..0000000000000000000000000000000000000000
--- a/fusl/arch/arm/pthread_arch.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#if ((__ARM_ARCH_6K__ || __ARM_ARCH_6ZK__) && !__thumb__) || \
- __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7
-
-static inline pthread_t __pthread_self() {
- char* p;
- __asm__ __volatile__("mrc p15,0,%0,c13,c0,3" : "=r"(p));
- return (void*)(p + 8 - sizeof(struct pthread));
-}
-
-#else
-
-static inline pthread_t __pthread_self() {
-#ifdef __clang__
- char* p;
- __asm__ __volatile__("bl __a_gettp\n\tmov %0,r0"
- : "=r"(p)
- :
- : "cc", "r0", "lr");
-#else
- register char* p __asm__("r0");
- __asm__ __volatile__("bl __a_gettp" : "=r"(p) : : "cc", "lr");
-#endif
- return (void*)(p + 8 - sizeof(struct pthread));
-}
-
-#endif
-
-#define TLS_ABOVE_TP
-#define TP_ADJ(p) ((char*)(p) + sizeof(struct pthread) - 8)
-
-#define MC_PC arm_pc
« no previous file with comments | « fusl/arch/arm/crt_arch.h ('k') | fusl/arch/arm/reloc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698