blob: b1a0c7c4e6eb98d9279107bcb8ae7d7c062aacfb [file] [log] [blame]
#include <intrin.h>
/* for x86 only */
unsigned long __readfsdword(unsigned long Offset)
{
unsigned long ret;
__asm__ volatile ("movl %%fs:%1,%0"
: "=r" (ret) ,"=m" ((*(volatile long *) Offset)));
return ret;
}