diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-08 22:29:34 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-08 22:29:34 +0100 |
commit | 2735b7e50da8c979e413042a1dc8023a5dba28c4 (patch) | |
tree | b1b648ab18869c27d5f7d2fbc106dc5d8895dbaf /Kernel/types.h | |
parent | c088529cd82d29b286e8dd8047270762367857c9 (diff) | |
download | serenity-2735b7e50da8c979e413042a1dc8023a5dba28c4.zip |
Add PhysicalAddress::offset().
Diffstat (limited to 'Kernel/types.h')
-rw-r--r-- | Kernel/types.h | 1 |
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; } |