From 2735b7e50da8c979e413042a1dc8023a5dba28c4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 8 Jan 2019 22:29:34 +0100 Subject: [PATCH] Add PhysicalAddress::offset(). --- Kernel/types.h | 1 + 1 file changed, 1 insertion(+) 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; }