Kernel: Increase kmalloc eternal heap to 3MiB

The kernel wouldn't boot reliably on x86_64 with just 2MiB.
This commit is contained in:
Gunnar Beutner 2021-06-28 13:45:57 +02:00 committed by Andreas Kling
parent e56a0d6af7
commit d67fd37847
Notes: sideshowbarker 2024-07-18 11:25:04 +09:00

View file

@ -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)