1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:47:35 +00:00

Kernel: Remove a handful of unused things in VM/ directory

Also add some missing initializers.
This commit is contained in:
Andreas Kling 2021-02-11 22:02:39 +01:00
parent ba42d741cb
commit 0dbb22e9e0
12 changed files with 5 additions and 66 deletions

View file

@ -96,10 +96,7 @@ public:
void set_mmap(bool mmap) { m_mmap = mmap; }
bool is_user_accessible() const { return m_user_accessible; }
void set_user_accessible(bool b) { m_user_accessible = b; }
bool is_kernel() const { return m_kernel || vaddr().get() >= 0xc0000000; }
void set_kernel(bool kernel) { m_kernel = kernel; }
PageFaultResponse handle_fault(const PageFault&, ScopedSpinLock<RecursiveSpinLock>&);
@ -173,11 +170,6 @@ public:
return m_offset_in_vmobject / PAGE_SIZE;
}
size_t last_page_index() const
{
return (first_page_index() + page_count()) - 1;
}
size_t page_count() const
{
return size() / PAGE_SIZE;