Sign in
third-party-mirror
/
mingw-w64
/
dbc05d62a2762e98080b2942038adca7a799bb98
/
.
/
mingw-w64-crt
/
intrincs
/
writegsqword.c
blob: 7ff6f0dfa8303e79766d677c5f7eb1d090f6c03e [
file
] [
log
] [
blame
]
#include
<intrin.h>
/* for __x86_64 only */
void
__writegsqword
(
unsigned
long
Offset
,
unsigned
__int64
Data
)
{
__asm__
volatile
(
"movq %0,%%gs:%1"
:
"=r"
(
Data
)
,
"=m"
((*(
volatile
long
*)
(
unsigned
__int64
)
Offset
)));
}