summaryrefslogtreecommitdiff
path: root/Kernel/types.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-08 22:29:34 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-08 22:29:34 +0100
commit2735b7e50da8c979e413042a1dc8023a5dba28c4 (patch)
treeb1b648ab18869c27d5f7d2fbc106dc5d8895dbaf /Kernel/types.h
parentc088529cd82d29b286e8dd8047270762367857c9 (diff)
downloadserenity-2735b7e50da8c979e413042a1dc8023a5dba28c4.zip
Add PhysicalAddress::offset().
Diffstat (limited to 'Kernel/types.h')
-rw-r--r--Kernel/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/types.h b/Kernel/types.h
index 7d2234832d..99bc61dd95 100644
--- a/Kernel/types.h
+++ b/Kernel/types.h
@@ -54,6 +54,7 @@ public:
PhysicalAddress() { }
explicit PhysicalAddress(dword address) : m_address(address) { }
+ PhysicalAddress offset(dword o) const { return PhysicalAddress(m_address + o); }
dword get() const { return m_address; }
void set(dword address) { m_address = address; }
void mask(dword m) { m_address &= m; }