From d1c93e6a24e21f8c72697b2f2a1e8b8cd170d478 Mon Sep 17 00:00:00 2001 From: Robin Alexander Plate Date: Sun, 17 Dec 2023 08:59:45 +0000 Subject: [PATCH] Add missing bump allocator initialization --- kernel/source/Bootstrap/Limine.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kernel/source/Bootstrap/Limine.c b/kernel/source/Bootstrap/Limine.c index a77043a..a09f25f 100644 --- a/kernel/source/Bootstrap/Limine.c +++ b/kernel/source/Bootstrap/Limine.c @@ -32,6 +32,9 @@ StartupRoutine ( GDTInit (); IDTInit (); + // + // Initialize the bump allocator + // BumperIdx = 0; for (UINT64 i = 0; i < g_LimineMemmap.response->entry_count; i++) { if (g_LimineMemmap.response->entries[i]->type == LIMINE_MEMMAP_USABLE) { @@ -50,5 +53,13 @@ StartupRoutine ( } } + RtlBumpAllocatorInitialize (&g_BumpAllocator); + + // + // Enter the common startup routine + // + // This is basically; cross-architecture, cross-platform and cross-bootloader + // initialization. + // CommonStartupRoutine ((PAGE_ALLOCATOR*)&g_BumpAllocator); }