elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
libc
/
debug
/
rdtsc.S
File editor
/* ia16-elf-gcc ASM instrumentation functions for ELKS */ /* June 2022 Greg Haerr */ .code16 .text .global _get_rdtsc // unsigned long long _get_rdtsc(void) // 386+ only, reads CPU time stamp counter _get_rdtsc: mov %sp,%bx mov 2(%bx),%bx // get address for 64-bit return rdtsc // returns 64-bit EDX:EAX mov %ax,(%bx) shr $16,%eax mov %ax,2(%bx) mov %dx,4(%bx) shr $16,%edx mov %dx,6(%bx) ret
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history