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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
/* or1k use variant I, but with the twist that tp points to the end of TCB */
static inline struct pthread *__pthread_self()
{
#ifdef __clang__
	char *tp;
	__asm__ __volatile__ ("l.ori %0, r10, 0" : "=r" (self) );
#else
	register char *tp __asm__("r10");
#endif
	return (struct pthread *) (tp - sizeof(struct pthread));
}

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

/* word-offset to 'pc' in mcontext_t */
#define CANCEL_REG_IP 32
debug log:

solving b864a24 ...
found b864a24 in https://inbox.vuxu.org/musl/1405533357-7898-1-git-send-email-stefan.kristiansson@saunalahti.fi/ ||
	https://inbox.vuxu.org/musl/1405624150-27560-1-git-send-email-stefan.kristiansson@saunalahti.fi/

applying [1/2] https://inbox.vuxu.org/musl/1405533357-7898-1-git-send-email-stefan.kristiansson@saunalahti.fi/
diff --git a/arch/or1k/pthread_arch.h b/arch/or1k/pthread_arch.h
new file mode 100644
index 0000000..b864a24

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

skipping https://inbox.vuxu.org/musl/1405624150-27560-1-git-send-email-stefan.kristiansson@saunalahti.fi/ for b864a24
index at:
100644 b864a24a0eccbeee5dfb2b74529efccccca34ce0	arch/or1k/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).