diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-08-24 22:04:52 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-08-24 22:04:52 -0400 |
commit | ea71a9004e08030a15d45186e263fd2b0c51cc25 (patch) | |
tree | 9bbe576df4289c730b60407178c2d786f325b224 /arch/powerpc64 | |
parent | 19f8642494b7d27b2ceed5c14d4a0b27cb749afe (diff) | |
download | musl-ea71a9004e08030a15d45186e263fd2b0c51cc25.tar.gz musl-ea71a9004e08030a15d45186e263fd2b0c51cc25.tar.bz2 musl-ea71a9004e08030a15d45186e263fd2b0c51cc25.tar.xz musl-ea71a9004e08030a15d45186e263fd2b0c51cc25.zip |
deduplicate TP_ADJ logic out of each arch, replace with TP_OFFSET
the only part of TP_ADJ that was not uniquely determined by
TLS_ABOVE_TP was the 0x7000 adjustment used mainly on mips and powerpc
variants.
Diffstat (limited to 'arch/powerpc64')
-rw-r--r-- | arch/powerpc64/pthread_arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc64/pthread_arch.h b/arch/powerpc64/pthread_arch.h index 79c3ecd8..e9dba43f 100644 --- a/arch/powerpc64/pthread_arch.h +++ b/arch/powerpc64/pthread_arch.h @@ -7,8 +7,8 @@ static inline struct pthread *__pthread_self() #define TLS_ABOVE_TP #define GAP_ABOVE_TP 0 -#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) + 0x7000) +#define TP_OFFSET 0x7000 #define DTP_OFFSET 0x8000 // the kernel calls the ip "nip", it's the first saved value after the 32 |