fixup nce

This commit is contained in:
lizzie
2026-04-21 16:55:33 +00:00
committed by crueter
parent 8bc6868fcf
commit 66b8d0b5c1
2 changed files with 12 additions and 6 deletions
+6 -4
View File
@@ -136,10 +136,12 @@ s64 WallClock::GetGPUTick() const {
s64 WallClock::GetUptime() const {
s64 cntvct_el0 = 0;
asm volatile("dsb ish\n\t"
"mrs %[cntvct_el0], cntvct_el0\n\t"
"dsb ish\n\t"
: [cntvct_el0] "=r"(cntvct_el0));
asm volatile(
"dsb ish\n\t"
"mrs %[cntvct_el0], cntvct_el0\n\t"
"dsb ish\n\t"
: [cntvct_el0] "=r"(cntvct_el0)
);
return cntvct_el0;
}