mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:52:45 +00:00 
			
		
		
		
	Kernel: Increase kmalloc eternal heap to 3MiB
The kernel wouldn't boot reliably on x86_64 with just 2MiB.
This commit is contained in:
		
							parent
							
								
									e56a0d6af7
								
							
						
					
					
						commit
						d67fd37847
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -27,7 +27,7 @@ | |||
| 
 | ||||
| #define CHUNK_SIZE 32 | ||||
| #define POOL_SIZE (2 * MiB) | ||||
| #define ETERNAL_RANGE_SIZE (2 * MiB) | ||||
| #define ETERNAL_RANGE_SIZE (3 * MiB) | ||||
| 
 | ||||
| namespace std { | ||||
| const nothrow_t nothrow; | ||||
|  | @ -228,7 +228,7 @@ UNMAP_AFTER_INIT void kmalloc_init() | |||
|     s_lock.initialize(); | ||||
| 
 | ||||
|     s_next_eternal_ptr = kmalloc_eternal_heap; | ||||
|     s_end_of_eternal_range = s_next_eternal_ptr + sizeof(kmalloc_pool_heap); | ||||
|     s_end_of_eternal_range = s_next_eternal_ptr + sizeof(kmalloc_eternal_heap); | ||||
| } | ||||
| 
 | ||||
| void* kmalloc_eternal(size_t size) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gunnar Beutner
						Gunnar Beutner