diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-18 18:52:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-18 18:52:34 +0200 |
commit | 10399a258f93d5d6ea20ca42619242e7e14c2fbd (patch) | |
tree | 7b2934a562701b6a735f43e1b89a828497ea4c59 /Kernel/Memory | |
parent | c14dda14c4faed4fe6468923f066b2979d2c87f9 (diff) | |
download | serenity-10399a258f93d5d6ea20ca42619242e7e14c2fbd.zip |
Kernel: Move Region physical page accessors out of line
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/Region.cpp | 12 | ||||
-rw-r--r-- | Kernel/Memory/VMObject.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Kernel/Memory/Region.cpp b/Kernel/Memory/Region.cpp index 03e77f69cc..f3aa874f9d 100644 --- a/Kernel/Memory/Region.cpp +++ b/Kernel/Memory/Region.cpp @@ -531,4 +531,16 @@ PageFaultResponse Region::handle_inode_fault(size_t page_index_in_region) return PageFaultResponse::Continue; } +PhysicalPage const* Region::physical_page(size_t index) const +{ + VERIFY(index < page_count()); + return vmobject().physical_pages()[first_page_index() + index]; +} + +RefPtr<PhysicalPage>& Region::physical_page_slot(size_t index) +{ + VERIFY(index < page_count()); + return vmobject().physical_pages()[first_page_index() + index]; +} + } diff --git a/Kernel/Memory/VMObject.h b/Kernel/Memory/VMObject.h index 7432181ecf..557c107d54 100644 --- a/Kernel/Memory/VMObject.h +++ b/Kernel/Memory/VMObject.h @@ -88,16 +88,4 @@ inline void VMObject::for_each_region(Callback callback) } } -inline PhysicalPage const* Region::physical_page(size_t index) const -{ - VERIFY(index < page_count()); - return vmobject().physical_pages()[first_page_index() + index]; -} - -inline RefPtr<PhysicalPage>& Region::physical_page_slot(size_t index) -{ - VERIFY(index < page_count()); - return vmobject().physical_pages()[first_page_index() + index]; -} - } |