htl: move __thread_set_pcsptp into libc.

Message-ID: <20250815181500.107433-9-gfleury@disroot.org>
This commit is contained in:
gfleury 2025-08-15 20:14:49 +02:00 committed by Samuel Thibault
parent 2dcb8fb8e7
commit e0b765d9ba
5 changed files with 7 additions and 2 deletions

View File

@ -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 \

View File

@ -256,6 +256,7 @@ libc {
__pthread_thread_start;
__pthread_thread_terminate;
__pthread_wakeup;
__thread_set_pcsptp;
}
}

View File

@ -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 */

View File

@ -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)

View File

@ -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)