From b9cf70c75d2b7482195a94e754d59f8cfc9dda2c Mon Sep 17 00:00:00 2001 From: "LevitatingBusinessMan (Rein Fernhout)" Date: Tue, 3 Dec 2024 03:25:54 +0100 Subject: [PATCH] use register satp instead of sptbr the register was renamed --- arch/riscv/mm/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);