mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibBareMetal: Return FlatPtr from PhysicalAddress::offset_in_page()
This commit is contained in:
parent
1c83c5ed08
commit
032ce1948e
5 changed files with 22 additions and 22 deletions
|
@ -48,7 +48,7 @@ public:
|
|||
const u8* as_ptr() const { return reinterpret_cast<const u8*>(m_address); }
|
||||
|
||||
PhysicalAddress page_base() const { return PhysicalAddress(m_address & 0xfffff000); }
|
||||
PhysicalAddress offset_in_page() const { return PhysicalAddress(m_address & 0xfff); }
|
||||
FlatPtr offset_in_page() const { return PhysicalAddress(m_address & 0xfff).get(); }
|
||||
|
||||
bool operator==(const PhysicalAddress& other) const { return m_address == other.m_address; }
|
||||
bool operator!=(const PhysicalAddress& other) const { return m_address != other.m_address; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue