mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	 89483a9408
			
		
	
	
		89483a9408
		
	
	
	
	
		
			
			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. :^)
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			298 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			298 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     Emulator.cpp
 | |
|     MallocTracer.cpp
 | |
|     MmapRegion.cpp
 | |
|     Range.cpp
 | |
|     RangeAllocator.cpp
 | |
|     Region.cpp
 | |
|     SimpleRegion.cpp
 | |
|     SoftCPU.cpp
 | |
|     SoftMMU.cpp
 | |
|     main.cpp
 | |
| )
 | |
| 
 | |
| serenity_bin(UserspaceEmulator)
 | |
| target_link_libraries(UserspaceEmulator LibX86 LibDebug LibCore LibPthread)
 |