Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checks/payloads/limine/arch_aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void arch_cpu_relax(void) {

uint64_t arch_counter(void) {
asm volatile ("isb" ::: "memory");
return READ_SYSREG(cntpct_el0);
return READ_SYSREG(cntvct_el0);
}

uint64_t arch_counter_hw_freq(void) {
Expand Down
2 changes: 1 addition & 1 deletion common/sys/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static inline void sync_icache_range(uintptr_t start, uintptr_t end) {

static inline uint64_t rdtsc(void) {
uint64_t v;
asm volatile ("mrs %0, cntpct_el0" : "=r" (v));
asm volatile ("mrs %0, cntvct_el0" : "=r"(v));
return v;
}

Expand Down
Loading