Sign in
cobalt
/
cobalt
/
f9bc0139df6e6eb149345ab9b6ffcc40603fc09f
/
.
/
third_party
/
musl
/
arch
/
x86_64
/
pthread_arch.h
blob: c8c63f2e7a934081334a4ad0aa1ef0906dfd4249 [
file
] [
log
] [
blame
]
static
inline
uintptr_t
__get_tp
()
{
uintptr_t
tp
;
__asm__
(
"mov %%fs:0,%0"
:
"=r"
(
tp
)
);
return
tp
;
}
#define
MC_PC gregs
[
REG_RIP
]