use register satp instead of sptbr

the register was renamed
This commit is contained in:
LevitatingBusinessMan (Rein Fernhout)
2024-12-03 03:25:54 +01:00
committed by Han Gao
parent f6b3a51dab
commit b9cf70c75d

View File

@@ -98,7 +98,7 @@ void switch_mm(struct mm_struct *prev, struct mm_struct *next,
"sfence.vma t0, t0\n\t"
::: "memory", "t0");
csr_write(sptbr, virt_to_pfn(next->pgd) | SATP_MODE | asid);
csr_write(satp, virt_to_pfn(next->pgd) | SATP_MODE | asid);
#endif
flush_icache_deferred(next);