mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:17:35 +00:00
Kernel: Make VirtualAddress::page_base() work with 64-bit addresses
This commit is contained in:
parent
679ae6af81
commit
c878054682
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public:
|
|||
[[nodiscard]] u8* as_ptr() { return reinterpret_cast<u8*>(m_address); }
|
||||
[[nodiscard]] const u8* as_ptr() const { return reinterpret_cast<const u8*>(m_address); }
|
||||
|
||||
[[nodiscard]] VirtualAddress page_base() const { return VirtualAddress(m_address & 0xfffff000); }
|
||||
[[nodiscard]] VirtualAddress page_base() const { return VirtualAddress(m_address & ~(FlatPtr)0xfffu); }
|
||||
|
||||
private:
|
||||
FlatPtr m_address { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue