#include #include #include #include VMObject::VMObject(const VMObject& other) : m_physical_pages(other.m_physical_pages) { MM.register_vmo(*this); } VMObject::VMObject(size_t size) : m_physical_pages(ceil_div(size, PAGE_SIZE)) { MM.register_vmo(*this); } VMObject::~VMObject() { MM.unregister_vmo(*this); }