1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

UserspaceEmulator: Enable splitting regions at arbitrary points

This is not yet useful in and of itself, but enables the feature in the next commit.
This commit is contained in:
Ben Wiederhake 2021-03-07 22:37:38 +01:00 committed by Andreas Kling
parent 7cc8f20a30
commit 45443f24ec
7 changed files with 66 additions and 2 deletions

View file

@ -29,7 +29,7 @@
namespace UserspaceEmulator {
Vector<Range, 2> Range::carve(const Range& taken)
Vector<Range, 2> Range::carve(const Range& taken) const
{
VERIFY((taken.size() % PAGE_SIZE) == 0);
Vector<Range, 2> parts;