arch/x86_64: Map the new page table with read-write permissions

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
liwenxiang1
2024-10-09 19:06:08 +08:00
committed by Xiang Xiao
parent 42b7097cc2
commit 8fe6c0ee8e
+1 -1
View File
@@ -89,7 +89,7 @@ static int up_map_region_highmem(void *base, size_t size, int flags)
/* Map the page table to the prior level */
mmu_ln_setentry(ptlevel, ptprev, paddr, vaddr, 0);
mmu_ln_setentry(ptlevel, ptprev, paddr, vaddr, X86_PAGE_WR);
/* This is then used to map the final level */