projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add arm and sh bits/ptrace.h
[musl]
/
arch
/
sh
/
pthread_arch.h
diff --git
a/arch/sh/pthread_arch.h
b/arch/sh/pthread_arch.h
index
41fefac
..
a7dd27a
100644
(file)
--- a/
arch/sh/pthread_arch.h
+++ b/
arch/sh/pthread_arch.h
@@
-10,3
+10,8
@@
static inline struct pthread *__pthread_self()
#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread))
#define MC_PC sc_pc
+
+#ifdef __FDPIC__
+#define MC_GOT sc_regs[12]
+#define CANCEL_GOT (*(uintptr_t *)((char *)__syscall_cp_asm+sizeof(uintptr_t)))
+#endif