mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
VM: Pass a PhysicalPage by rvalue reference when returning it to the freelist.
This makes no functional difference, but it makes it clear that MemoryManager and PhysicalRegion take over the actual physical page represented by this PhysicalPage instance.
This commit is contained in:
parent
7710e48d83
commit
118cb391dd
5 changed files with 12 additions and 12 deletions
|
@ -25,7 +25,7 @@ public:
|
|||
|
||||
RetainPtr<PhysicalPage> take_free_page(bool supervisor);
|
||||
void return_page_at(PhysicalAddress addr);
|
||||
void return_page(PhysicalPage& page) { return_page_at(page.paddr()); }
|
||||
void return_page(PhysicalPage&& page) { return_page_at(page.paddr()); }
|
||||
|
||||
private:
|
||||
PhysicalRegion(PhysicalAddress lower, PhysicalAddress upper);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue