From 01ef3dd9c5fa7a56aa370f244dd08e05c73010f5 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 10 Mar 2015 21:18:41 +0000 Subject: add aarch64 port This adds complete aarch64 target support including bigendian subarch. Some of the long double math functions are known to be broken otherwise interfaces should be fully functional, but at this point consider this port experimental. Initial work on this port was done by Sireesh Tripurari and Kevin Bortis. --- arch/aarch64/pthread_arch.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 arch/aarch64/pthread_arch.h (limited to 'arch/aarch64/pthread_arch.h') diff --git a/arch/aarch64/pthread_arch.h b/arch/aarch64/pthread_arch.h new file mode 100644 index 00000000..74276f4c --- /dev/null +++ b/arch/aarch64/pthread_arch.h @@ -0,0 +1,11 @@ +static inline struct pthread *__pthread_self() +{ + char *self; + __asm__ __volatile__ ("mrs %0,tpidr_el0" : "=r"(self)); + return (void*)(self + 16 - sizeof(struct pthread)); +} + +#define TLS_ABOVE_TP +#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) - 16) + +#define CANCEL_REG_IP 33 -- cgit v1.2.1