Sign in
mojo
/
mojo
/
de6c20aad64d53a7061c10e724e9924cfec679f6
/
.
/
fusl
/
arch
/
x86_64
/
pthread_arch.h
blob: caecb02f3ee68f7807e6e96b50b9bddfda2f96f1 [
file
] [
log
] [
blame
]
static
inline
struct
pthread
*
__pthread_self
()
{
struct
pthread
*
self
;
__asm__ __volatile__
(
"mov %%fs:0,%0"
:
"=r"
(
self
));
return
self
;
}
#define
TP_ADJ
(
p
)
(
p
)
#define
MC_PC gregs
[
REG_RIP
]