mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-31 22:24:28 +00:00
mmu: driver framework, for vaddr maintenance
This commit gives basic mmu driver framework. Now it is able to maintain mmu virtual address usage on esp32, esp32s2 and esp32s3. Usage to external virtual address should rely on mmu functions to know which address range is available, instead of hardcoded. This commit also improves psram memory that is added to the heap allocator. Now it's added to the heap, according to the memory alignment. Closes https://github.com/espressif/esp-idf/issues/8295
This commit is contained in:
@@ -20,6 +20,14 @@ typedef enum {
|
||||
MMU_PAGE_64KB = 0x10000,
|
||||
} mmu_page_size_t;
|
||||
|
||||
/**
|
||||
* MMU virtual address type
|
||||
*/
|
||||
typedef enum {
|
||||
MMU_VADDR_DATA,
|
||||
MMU_VADDR_INSTRUCTION,
|
||||
} mmu_vaddr_t;
|
||||
|
||||
/**
|
||||
* External physical memory
|
||||
*/
|
||||
|
Reference in New Issue
Block a user