Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 21, 2024
1 parent bd7324f commit 21c5bd8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/risc-v/src/bl808/bl808_mm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ void bl808_kernel_mappings(void)

/* Begin mapping memory to MMU; note that at this point the MMU is not yet
* active, so the page table virtual addresses are actually physical
* addresses and so forth. M-mode does not perform translations anyhow, so
* this mapping is quite simple to do
* addresses and so forth.
*/

/* Map I/O region, use enough large page tables for the IO region. */
Expand Down Expand Up @@ -291,7 +290,7 @@ void bl808_mm_init(void)

bl808_kernel_mappings();

/* Enable MMU (note: system is still in M-mode) */
/* Enable MMU */

binfo("mmu_enable: satp=%" PRIuPTR "\n", g_kernel_pgt_pbase);
mmu_enable(g_kernel_pgt_pbase, 0);
Expand Down

0 comments on commit 21c5bd8

Please sign in to comment.