diff options
Diffstat (limited to 'rdtsc.S')
| -rw-r--r-- | rdtsc.S | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +global rdtsc + +section .text +rdtsc: + mfence + lfence + rdtsc + lfence + shl rdx, 32 + mov edx, eax + mov rax, rdx + ret + |
