aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-08-15 20:14:49 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-08-16 01:44:27 +0200
commite0b765d9ba9fee6ee97df9597131cfe3ce80309b (patch)
treef9bd0d8167b61aa43386348570023a58a5e907b2
parent2dcb8fb8e770d873501e48a060fb59fb2fcc62c1 (diff)
downloadglibc-e0b765d9ba9fee6ee97df9597131cfe3ce80309b.zip
glibc-e0b765d9ba9fee6ee97df9597131cfe3ce80309b.tar.gz
glibc-e0b765d9ba9fee6ee97df9597131cfe3ce80309b.tar.bz2
htl: move __thread_set_pcsptp into libc.
Message-ID: <20250815181500.107433-9-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--sysdeps/mach/hurd/htl/pt-sysdep.h2
-rw-r--r--sysdeps/mach/hurd/i386/htl/pt-machdep.c2
-rw-r--r--sysdeps/mach/hurd/x86_64/htl/pt-machdep.c2
5 files changed, 7 insertions, 2 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 6c04a27..88f65c4 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -41,7 +41,6 @@ libpthread-routines := \
pt-docancel \
pt-sysdep \
pt-setup \
- pt-machdep \
pt-spin \
pt-sigstate-init \
pt-kill \
@@ -154,6 +153,7 @@ routines := \
pt-init-specific \
pt-key-create \
pt-key-delete \
+ pt-machdep \
pt-mutex-checklocked \
pt-mutex-consistent \
pt-mutex-destroy \
diff --git a/htl/Versions b/htl/Versions
index e6bd128..e5ff918 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -256,6 +256,7 @@ libc {
__pthread_thread_start;
__pthread_thread_terminate;
__pthread_wakeup;
+ __thread_set_pcsptp;
}
}
diff --git a/sysdeps/mach/hurd/htl/pt-sysdep.h b/sysdeps/mach/hurd/htl/pt-sysdep.h
index fb451e0..1b72706 100644
--- a/sysdeps/mach/hurd/htl/pt-sysdep.h
+++ b/sysdeps/mach/hurd/htl/pt-sysdep.h
@@ -69,6 +69,6 @@ __pthread_stack_dealloc (void *stackaddr, size_t stacksize)
extern int __thread_set_pcsptp (thread_t thread,
int set_pc, void *pc,
int set_sp, void *sp, int set_tp, void *tp);
-
+libc_hidden_proto (__thread_set_pcsptp)
#endif /* pt-sysdep.h */
diff --git a/sysdeps/mach/hurd/i386/htl/pt-machdep.c b/sysdeps/mach/hurd/i386/htl/pt-machdep.c
index fd3eb86..06c746d 100644
--- a/sysdeps/mach/hurd/i386/htl/pt-machdep.c
+++ b/sysdeps/mach/hurd/i386/htl/pt-machdep.c
@@ -23,6 +23,7 @@
#include <mach/i386/mach_i386.h>
#include <mach/mig_errors.h>
#include <mach/thread_status.h>
+#include <pt-sysdep.h>
#define HURD_TLS_DESC_DECL(desc, tcb) \
struct descriptor desc = \
@@ -80,3 +81,4 @@ __thread_set_pcsptp (thread_t thread,
return 0;
}
+libc_hidden_def (__thread_set_pcsptp)
diff --git a/sysdeps/mach/hurd/x86_64/htl/pt-machdep.c b/sysdeps/mach/hurd/x86_64/htl/pt-machdep.c
index 9281545..f3e3d0a 100644
--- a/sysdeps/mach/hurd/x86_64/htl/pt-machdep.c
+++ b/sysdeps/mach/hurd/x86_64/htl/pt-machdep.c
@@ -24,6 +24,7 @@
#include <mach/x86_64/mach_i386.h>
#include <mach/mig_errors.h>
#include <mach/thread_status.h>
+#include <pt-sysdep.h>
int
__thread_set_pcsptp (thread_t thread,
@@ -71,3 +72,4 @@ __thread_set_pcsptp (thread_t thread,
return 0;
}
+libc_hidden_def (__thread_set_pcsptp)