diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c index 4e022e124..6add1750d 100644 --- a/arch/riscv/mm/context.c +++ b/arch/riscv/mm/context.c @@ -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);