diff options
Diffstat (limited to 'Kernel/VM/ContiguousVMObject.cpp')
-rw-r--r-- | Kernel/VM/ContiguousVMObject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/VM/ContiguousVMObject.cpp b/Kernel/VM/ContiguousVMObject.cpp index e084f7d69d..d4f09d3c3c 100644 --- a/Kernel/VM/ContiguousVMObject.cpp +++ b/Kernel/VM/ContiguousVMObject.cpp @@ -31,15 +31,15 @@ namespace Kernel { -NonnullRefPtr<ContiguousVMObject> ContiguousVMObject::create_with_size(size_t size) +NonnullRefPtr<ContiguousVMObject> ContiguousVMObject::create_with_size(size_t size, size_t physical_alignment) { - return adopt(*new ContiguousVMObject(size)); + return adopt(*new ContiguousVMObject(size, physical_alignment)); } -ContiguousVMObject::ContiguousVMObject(size_t size) +ContiguousVMObject::ContiguousVMObject(size_t size, size_t physical_alignment) : VMObject(size) { - auto contiguous_physical_pages = MM.allocate_contiguous_supervisor_physical_pages(size); + auto contiguous_physical_pages = MM.allocate_contiguous_supervisor_physical_pages(size, physical_alignment); for (size_t i = 0; i < page_count(); i++) { physical_pages()[i] = contiguous_physical_pages[i]; dbgln<CONTIGUOUS_VMOBJECT_DEBUG>("Contiguous page[{}]: {}", i, physical_pages()[i]->paddr()); |