mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
MPFS: Protected mode, fix MMU mapping
The mapped vaddr was wrong, don't want to map the page tables, but the user space area (start of .text) instead.
This commit is contained in:
@@ -278,8 +278,8 @@ static void configure_mmu(void)
|
||||
|
||||
/* Setup the L2 and L1 references */
|
||||
|
||||
mmu_ln_setentry(2, PGT_L2_VBASE, PGT_L3_PBASE, PGT_L3_VBASE, PTE_G);
|
||||
mmu_ln_setentry(1, PGT_L1_VBASE, PGT_L2_PBASE, PGT_L2_VBASE, PTE_G);
|
||||
mmu_ln_setentry(2, PGT_L2_VBASE, PGT_L3_PBASE, UFLASH_START, PTE_G);
|
||||
mmu_ln_setentry(1, PGT_L1_VBASE, PGT_L2_PBASE, UFLASH_START, PTE_G);
|
||||
|
||||
/* Enable MMU */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user