fixup nce

This commit is contained in:
lizzie 2026-04-21 16:55:33 +00:00
parent 8f163d84cb
commit 790512d202
2 changed files with 12 additions and 6 deletions

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;
}