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:
Ville Juven 2022-02-25 09:19:03 +02:00 committed by Xiang Xiao
parent 9269a86d00
commit 0f91eab626

View File

@ -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 */