mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Add PhysicalAddress::offset().
This commit is contained in:
parent
c088529cd8
commit
2735b7e50d
1 changed files with 1 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue