summaryrefslogtreecommitdiff
path: root/src/core/mem_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/mem_map.h')
-rw-r--r--src/core/mem_map.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index 1591fc0a9..5a08cc105 100644
--- a/src/core/mem_map.h
+++ b/src/core/mem_map.h
@@ -181,10 +181,15 @@ inline const char* GetCharPointer(const VAddr address) {
181 return (const char *)GetPointer(address); 181 return (const char *)GetPointer(address);
182} 182}
183 183
184/// Converts a physical address to virtual address 184/**
185VAddr PhysicalToVirtualAddress(PAddr addr); 185 * Converts a virtual address inside a region with 1:1 mapping to physical memory to a physical
186 186 * address. This should be used by services to translate addresses for use by the hardware.
187/// Converts a virtual address to physical address 187 */
188PAddr VirtualToPhysicalAddress(VAddr addr); 188PAddr VirtualToPhysicalAddress(VAddr addr);
189 189
190/**
191 * Undoes a mapping performed by VirtualToPhysicalAddress().
192 */
193VAddr PhysicalToVirtualAddress(PAddr addr);
194
190} // namespace 195} // namespace