From 1a77dfed236c988f03e0c93eef296f22e044e272 Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Tue, 11 Jun 2019 21:12:17 +1000 Subject: [PATCH] Kernel: Add some comparison operators to PhysicalAddress --- Kernel/PhysicalAddress.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Kernel/PhysicalAddress.h b/Kernel/PhysicalAddress.h index 6fd869dca6..8457006aba 100644 --- a/Kernel/PhysicalAddress.h +++ b/Kernel/PhysicalAddress.h @@ -21,6 +21,11 @@ public: dword page_base() const { return m_address & 0xfffff000; } bool operator==(const PhysicalAddress& other) const { return m_address == other.m_address; } + bool operator!=(const PhysicalAddress& other) const { return m_address != other.m_address; } + bool operator>(const PhysicalAddress& other) const { return m_address > other.m_address; } + bool operator>=(const PhysicalAddress& other) const { return m_address >= other.m_address; } + bool operator<(const PhysicalAddress& other) const { return m_address < other.m_address; } + bool operator<=(const PhysicalAddress& other) const { return m_address <= other.m_address; } private: dword m_address { 0 };