diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-09 09:02:32 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-09 09:02:32 +0200 |
commit | 17a8cae0038b82202149bad687823b89074aa696 (patch) | |
tree | 02970a9b2368551c4af31e4138db1b6ded6d018c /src/core/mem_map.h | |
parent | Memory: Support more regions in the VAddr-PAddr translation functions (diff) | |
download | yuzu-17a8cae0038b82202149bad687823b89074aa696.tar yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.gz yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.bz2 yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.lz yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.xz yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.zst yuzu-17a8cae0038b82202149bad687823b89074aa696.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/mem_map.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h index 5a08cc105..64de76c39 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h @@ -192,4 +192,13 @@ PAddr VirtualToPhysicalAddress(VAddr addr); */ VAddr PhysicalToVirtualAddress(PAddr addr); +/** + * Gets a pointer to the memory region beginning at the specified physical address. + * + * @note This is currently implemented using PhysicalToVirtualAddress(). + */ +inline u8* GetPhysicalPointer(PAddr address) { + return GetPointer(PhysicalToVirtualAddress(address)); +} + } // namespace |