summaryrefslogtreecommitdiff
path: root/src/core/mem_map.h
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-17 21:15:40 -0400
committerGravatar bunnei2014-04-17 21:15:40 -0400
commita9dba388eba586691724187fe53b385cc0bf23aa (patch)
treecdd718342fba54e3345d111e14150a2461d795a7 /src/core/mem_map.h
parentmore various refactors to memory interface (diff)
downloadyuzu-a9dba388eba586691724187fe53b385cc0bf23aa.tar.gz
yuzu-a9dba388eba586691724187fe53b385cc0bf23aa.tar.xz
yuzu-a9dba388eba586691724187fe53b385cc0bf23aa.zip
added memory read/write to GSP heap
Diffstat (limited to 'src/core/mem_map.h')
-rw-r--r--src/core/mem_map.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index a1fa90f3e..9ca05cc4e 100644
--- a/src/core/mem_map.h
+++ b/src/core/mem_map.h
@@ -34,6 +34,7 @@ enum {
34 VRAM_MASK = 0x007FFFFF, 34 VRAM_MASK = 0x007FFFFF,
35 FCRAM_MASK = (FCRAM_SIZE - 1), ///< FCRAM mask 35 FCRAM_MASK = (FCRAM_SIZE - 1), ///< FCRAM mask
36 SCRATCHPAD_MASK = (SCRATCHPAD_SIZE - 1), ///< Scratchpad memory mask 36 SCRATCHPAD_MASK = (SCRATCHPAD_SIZE - 1), ///< Scratchpad memory mask
37 HEAP_GSP_MASK = (HEAP_GSP_SIZE - 1),
37 HEAP_MASK = (HEAP_SIZE - 1), 38 HEAP_MASK = (HEAP_SIZE - 1),
38 39
39 FCRAM_PADDR = 0x20000000, ///< FCRAM physical address 40 FCRAM_PADDR = 0x20000000, ///< FCRAM physical address
@@ -62,7 +63,8 @@ extern u8 *g_base;
62// These are guaranteed to point to "low memory" addresses (sub-32-bit). 63// These are guaranteed to point to "low memory" addresses (sub-32-bit).
63// 64-bit: Pointers to low-mem (sub-0x10000000) mirror 64// 64-bit: Pointers to low-mem (sub-0x10000000) mirror
64// 32-bit: Same as the corresponding physical/virtual pointers. 65// 32-bit: Same as the corresponding physical/virtual pointers.
65extern u8* g_heap; ///< Main memory 66extern u8* g_heap_gsp; ///< GSP heap (main memory)
67extern u8* g_heap; ///< Application heap (main memory)
66extern u8* g_vram; ///< Video memory (VRAM) 68extern u8* g_vram; ///< Video memory (VRAM)
67 69
68void Init(); 70void Init();