diff options
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 |