mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
arch/x86_64: Map the new page table with read-write permissions
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user