mmu: simplify mmu_hal_init

This commit is contained in:
Armando
2022-04-21 21:55:44 +08:00
parent 63ac5e4a99
commit 2764cd5682
8 changed files with 92 additions and 19 deletions

View File

@@ -37,6 +37,12 @@ extern "C" {
#define ADDRESS_IN_DRAM1_CACHE(vaddr) ADDRESS_IN_BUS(DRAM1_CACHE, vaddr)
#define ADDRESS_IN_DROM0_CACHE(vaddr) ADDRESS_IN_BUS(DROM0_CACHE, vaddr)
/**
* Max MMU entry num.
* `MMU_MAX_ENTRY_NUM * MMU_PAGE_SIZE` means the max paddr and vaddr region supported by the MMU. e.g.:
* 256 * 64KB, means MMU can map 16MB at most
*/
#define MMU_MAX_ENTRY_NUM 256
#ifdef __cplusplus
}