mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:17:44 +00:00
UserspaceEmulator: Implement a proper VM allocator
This patch brings Kernel::RangeAllocator to UserspaceEmulator in a slightly simplified form. It supports the basic three allocation types needed by virt$mmap(): allocate_anywhere, allocate_specific, and allocate_randomized. Porting virt$mmap() and virt$munmap() to use the allocator makes UE work correctly once again. :^)
This commit is contained in:
parent
9dacd7c0ec
commit
89483a9408
10 changed files with 438 additions and 36 deletions
|
@ -2,6 +2,8 @@ set(SOURCES
|
|||
Emulator.cpp
|
||||
MallocTracer.cpp
|
||||
MmapRegion.cpp
|
||||
Range.cpp
|
||||
RangeAllocator.cpp
|
||||
Region.cpp
|
||||
SimpleRegion.cpp
|
||||
SoftCPU.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue