summaryrefslogtreecommitdiff
path: root/Kernel/VM/ContiguousVMObject.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-12-05 22:49:24 -0700
committerAndreas Kling <kling@serenityos.org>2021-01-28 18:52:59 +0100
commitaffb4ef01bcd3b8ac316c95738fb5baaf6b17963 (patch)
tree291b29a644281776ffc954a4d0cb9dddf58edf51 /Kernel/VM/ContiguousVMObject.h
parentd5472426ecb0a6c1e784add823c83b38e1b5ccb7 (diff)
downloadserenity-affb4ef01bcd3b8ac316c95738fb5baaf6b17963.zip
Kernel: Allow specifying a physical alignment when allocating
Some drivers may require allocating contiguous physical pages with a specific alignment for the physical address.
Diffstat (limited to 'Kernel/VM/ContiguousVMObject.h')
-rw-r--r--Kernel/VM/ContiguousVMObject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VM/ContiguousVMObject.h b/Kernel/VM/ContiguousVMObject.h
index 3c273b6e7b..0cac59d269 100644
--- a/Kernel/VM/ContiguousVMObject.h
+++ b/Kernel/VM/ContiguousVMObject.h
@@ -35,10 +35,10 @@ class ContiguousVMObject final : public VMObject {
public:
virtual ~ContiguousVMObject() override;
- static NonnullRefPtr<ContiguousVMObject> create_with_size(size_t);
+ static NonnullRefPtr<ContiguousVMObject> create_with_size(size_t, size_t physical_alignment = PAGE_SIZE);
private:
- explicit ContiguousVMObject(size_t);
+ explicit ContiguousVMObject(size_t, size_t physical_alignment);
explicit ContiguousVMObject(const ContiguousVMObject&);
virtual const char* class_name() const override { return "ContiguousVMObject"; }