Sign in
mingw
/
mingw-w64
/
e18cd9b39568c4ac06d0b3ff8afda9362bc668b7
/
.
/
mingw-w64-crt
/
intrincs
/
writegsdword.c
blob: 4c42ab5ba6761f9c65bb352e6e428c2b3fcba631 [
file
] [
log
] [
blame
]
#include
<intrin.h>
/* for __x86_64 only */
void
__writegsdword
(
unsigned
__LONG32
Offset
,
unsigned
__LONG32
Data
)
{
__asm__
volatile
(
"movl %0,%%gs:%1"
:
"=r"
(
Data
)
,
"=m"
((*(
volatile
__LONG32
*)
(
unsigned
__int64
)
Offset
)));
}