summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-03-08 18:29:48 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-09 10:53:13 +0100
commit032ce1948e76e6fbe4b7ba62f9194872593e3b3f (patch)
treed2437c75290d5984e2f8ea20263038b806150eb2 /Libraries
parent1c83c5ed084639274a4fc7e10fba2cc9781e239d (diff)
downloadserenity-032ce1948e76e6fbe4b7ba62f9194872593e3b3f.zip
LibBareMetal: Return FlatPtr from PhysicalAddress::offset_in_page()
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibBareMetal/Memory/PhysicalAddress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibBareMetal/Memory/PhysicalAddress.h b/Libraries/LibBareMetal/Memory/PhysicalAddress.h
index e982cece9b..eab960f349 100644
--- a/Libraries/LibBareMetal/Memory/PhysicalAddress.h
+++ b/Libraries/LibBareMetal/Memory/PhysicalAddress.h
@@ -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; }