diff options
| author | rebeccadoth <rebeccadoth@disroot.org> | 2026-11-08 21:48:41 +0100 |
|---|---|---|
| committer | rebeccadoth <rebeccadoth@disroot.org> | 2026-11-08 21:48:41 +0100 |
| commit | 60f60fa1a9b40863cf325cca1447ec36d6108701 (patch) | |
| tree | 24697bcde2c86c6da77950f32819cd5584ac4487 /rdtsc.S | |
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 + |
