mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
arm64 has an invariant tsc too
This commit is contained in:
@@ -104,6 +104,8 @@ TSC at a fixed frequency, independent of ACPI state, and CPU frequency.
|
|||||||
has_invariant_tsc :: proc "contextless" () -> bool {
|
has_invariant_tsc :: proc "contextless" () -> bool {
|
||||||
when ODIN_ARCH == .amd64 {
|
when ODIN_ARCH == .amd64 {
|
||||||
return x86_has_invariant_tsc()
|
return x86_has_invariant_tsc()
|
||||||
|
} else when ODIN_ARCH == .arm64 {
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user