amd64: add time system

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-21 07:39:27 -04:00
commit 36145eafbc
9 changed files with 179 additions and 2 deletions

10
amd64/kernel/tsc.S Normal file
View file

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
.intel_syntax noprefix
.text
.global rdtsc
rdtsc:
rdtsc
shl rdx, 32
or rax, rdx
ret