1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:37:45 +00:00

LibBareMetal: Return FlatPtr from PhysicalAddress::offset_in_page()

This commit is contained in:
Liav A 2020-03-08 18:29:48 +02:00 committed by Andreas Kling
parent 1c83c5ed08
commit 032ce1948e
5 changed files with 22 additions and 22 deletions

View file

@ -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; }