mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
use register satp instead of sptbr
the register was renamed
This commit is contained in:
committed by
Han Gao
parent
f6b3a51dab
commit
b9cf70c75d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user