Sign in
android
/
trusty
/
external
/
musl
/
abed653939c5a81efd1e32ded4a3b73c10b55a0b
/
.
/
arch
/
x86_64
/
pthread_arch.h
blob: 8abc8fd31d91234cbf01fdd6b47f43a669a81c09 [
file
] [
log
] [
blame
]
#if defined(TRUSTY_USERSPACE)
static
inline
struct
pthread
*
__pthread_self
()
{
struct
pthread
*
self
;
__asm__
(
"mov %%fs:0,%0"
:
"=r"
(
self
)
);
return
self
;
}
#endif
#define
TP_ADJ
(
p
)
(
p
)
#define
MC_PC gregs
[
REG_RIP
]