aboutsummaryrefslogtreecommitdiff
path: root/arch/i386
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-08-24 22:04:52 -0400
committerRich Felker <dalias@aerifal.cx>2020-08-24 22:04:52 -0400
commitea71a9004e08030a15d45186e263fd2b0c51cc25 (patch)
tree9bbe576df4289c730b60407178c2d786f325b224 /arch/i386
parent19f8642494b7d27b2ceed5c14d4a0b27cb749afe (diff)
downloadmusl-ea71a9004e08030a15d45186e263fd2b0c51cc25.tar.gz
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/i386')
-rw-r--r--arch/i386/pthread_arch.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/i386/pthread_arch.h b/arch/i386/pthread_arch.h
index 6f600b9e..32570a17 100644
--- a/arch/i386/pthread_arch.h
+++ b/arch/i386/pthread_arch.h
@@ -5,6 +5,4 @@ static inline struct pthread *__pthread_self()
return self;
}
-#define TP_ADJ(p) (p)
-
#define MC_PC gregs[REG_EIP]