mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
switch to read_cycle_counter_frequency from arm64_read_cycle_counter_freq, trap on invalid arch
This commit is contained in:
@@ -7,7 +7,7 @@ import linux "core:sys/linux"
|
||||
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
if ODIN_ARCH == .arm64 {
|
||||
frequency := u64(intrinsics.arm64_read_cycle_counter_frequency())
|
||||
frequency := u64(intrinsics.read_cycle_counter_frequency())
|
||||
return frequency, true
|
||||
} else {
|
||||
// Get the file descriptor for the perf mapping
|
||||
|
||||
Reference in New Issue
Block a user