Memory: Add GetPhysicalPointer helper function
This commit is contained in:
parent
28a9e4c1d5
commit
17a8cae003
7 changed files with 28 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue