From 0d52b5be56e21729a61cda7f8315a45400d989fb Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 5 Oct 2022 16:13:28 +0300 Subject: [PATCH] mpfs_mm_init: Mark the L2 kernel page table as a global mapping Kernel mappings are global, i.e. they exist in every address environment --- arch/risc-v/src/mpfs/mpfs_mm_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/mpfs/mpfs_mm_init.c b/arch/risc-v/src/mpfs/mpfs_mm_init.c index aa14554834..7100178455 100644 --- a/arch/risc-v/src/mpfs/mpfs_mm_init.c +++ b/arch/risc-v/src/mpfs/mpfs_mm_init.c @@ -181,7 +181,7 @@ static void map_region(uintptr_t paddr, uintptr_t vaddr, size_t size, /* Map it to the L3 table */ - mmu_ln_setentry(2, PGT_L2_VBASE, l3pbase, vaddr, MMU_UPGT_FLAGS); + mmu_ln_setentry(2, PGT_L2_VBASE, l3pbase, vaddr, PTE_G); } /* Then add the L3 mappings */