diff options
| author | 2014-04-29 23:16:12 -0400 | |
|---|---|---|
| committer | 2014-04-30 18:31:35 -0400 | |
| commit | 235dddb3f134208e30683c951158616427568af7 (patch) | |
| tree | 04ad6514440466d92d3bb6805c5a0e291b5a434f /src/core/mem_map.cpp | |
| parent | reorganized memory regions enum, added regions for ExeFS code (diff) | |
| download | yuzu-235dddb3f134208e30683c951158616427568af7.tar.gz yuzu-235dddb3f134208e30683c951158616427568af7.tar.xz yuzu-235dddb3f134208e30683c951158616427568af7.zip | |
added virtual memory map for ExeFS (where ARM11 code is supposed to be loaded)
Diffstat (limited to 'src/core/mem_map.cpp')
| -rw-r--r-- | src/core/mem_map.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cpp index 96245e320..af99cbe32 100644 --- a/src/core/mem_map.cpp +++ b/src/core/mem_map.cpp | |||
| @@ -16,6 +16,7 @@ u8* g_base = NULL; ///< The base pointer to the aut | |||
| 16 | 16 | ||
| 17 | MemArena g_arena; ///< The MemArena class | 17 | MemArena g_arena; ///< The MemArena class |
| 18 | 18 | ||
| 19 | u8* g_exefs_code = NULL; ///< ExeFS:/.code is loaded here | ||
| 19 | u8* g_heap = NULL; ///< Application heap (main memory) | 20 | u8* g_heap = NULL; ///< Application heap (main memory) |
| 20 | u8* g_heap_gsp = NULL; ///< GSP heap (main memory) | 21 | u8* g_heap_gsp = NULL; ///< GSP heap (main memory) |
| 21 | u8* g_vram = NULL; ///< Video memory (VRAM) pointer | 22 | u8* g_vram = NULL; ///< Video memory (VRAM) pointer |
| @@ -24,6 +25,7 @@ u8* g_shared_mem = NULL; ///< Shared memory | |||
| 24 | u8* g_physical_bootrom = NULL; ///< Bootrom physical memory | 25 | u8* g_physical_bootrom = NULL; ///< Bootrom physical memory |
| 25 | u8* g_uncached_bootrom = NULL; | 26 | u8* g_uncached_bootrom = NULL; |
| 26 | 27 | ||
| 28 | u8* g_physical_exefs_code = NULL; ///< Phsical ExeFS:/.code is loaded here | ||
| 27 | u8* g_physical_fcram = NULL; ///< Main physical memory (FCRAM) | 29 | u8* g_physical_fcram = NULL; ///< Main physical memory (FCRAM) |
| 28 | u8* g_physical_heap_gsp = NULL; ///< GSP heap physical memory | 30 | u8* g_physical_heap_gsp = NULL; ///< GSP heap physical memory |
| 29 | u8* g_physical_vram = NULL; ///< Video physical memory (VRAM) | 31 | u8* g_physical_vram = NULL; ///< Video physical memory (VRAM) |
| @@ -31,6 +33,7 @@ u8* g_physical_shared_mem = NULL; ///< Physical shared memory | |||
| 31 | 33 | ||
| 32 | // We don't declare the IO region in here since its handled by other means. | 34 | // We don't declare the IO region in here since its handled by other means. |
| 33 | static MemoryView g_views[] = { | 35 | static MemoryView g_views[] = { |
| 36 | {&g_exefs_code, &g_physical_exefs_code, EXEFS_CODE_VADDR, EXEFS_CODE_SIZE, 0}, | ||
| 34 | {&g_vram, &g_physical_vram, VRAM_VADDR, VRAM_SIZE, 0}, | 37 | {&g_vram, &g_physical_vram, VRAM_VADDR, VRAM_SIZE, 0}, |
| 35 | {&g_heap, &g_physical_fcram, HEAP_VADDR, HEAP_SIZE, MV_IS_PRIMARY_RAM}, | 38 | {&g_heap, &g_physical_fcram, HEAP_VADDR, HEAP_SIZE, MV_IS_PRIMARY_RAM}, |
| 36 | {&g_shared_mem, &g_physical_shared_mem, SHARED_MEMORY_VADDR, SHARED_MEMORY_SIZE, 0}, | 39 | {&g_shared_mem, &g_physical_shared_mem, SHARED_MEMORY_VADDR, SHARED_MEMORY_SIZE, 0}, |