Add PhysicalAddress::offset().

This commit is contained in:
Andreas Kling 2019-01-08 22:29:34 +01:00
parent c088529cd8
commit 2735b7e50d
Notes: sideshowbarker 2024-07-19 16:05:54 +09:00

View File

@ -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; }