mailing list of musl libc
 help / color / mirror / code / Atom feed
feffaa4734565a373adefc42f61d9c4c46976934 blob 280 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
static inline struct pthread *__pthread_self()
{
	char *tp;
	__asm__ __volatile__("mv %0, tp" : "=r"(tp));
	return (void *)(tp - sizeof(struct pthread));
}

#define TLS_ABOVE_TP
#define GAP_ABOVE_TP 0
#define TP_ADJ(p) ((char *)p + sizeof(struct pthread))

#define MC_PC gregs[0]
debug log:

solving feffaa47 ...
found feffaa47 in https://inbox.vuxu.org/musl/20190524144608.5998-1-sir@cmpwn.com/

applying [1/1] https://inbox.vuxu.org/musl/20190524144608.5998-1-sir@cmpwn.com/
diff --git a/arch/riscv64/pthread_arch.h b/arch/riscv64/pthread_arch.h
new file mode 100644
index 00000000..feffaa47

Checking patch arch/riscv64/pthread_arch.h...
Applied patch arch/riscv64/pthread_arch.h cleanly.

index at:
100644 feffaa4734565a373adefc42f61d9c4c46976934	arch/riscv64/pthread_arch.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).