amd64: add time system
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
bb71cfd98f
commit
36145eafbc
9 changed files with 179 additions and 2 deletions
10
amd64/kernel/tsc.S
Normal file
10
amd64/kernel/tsc.S
Normal 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
|
||||
Loading…
Reference in a new issue