Skip to content

Commit

Permalink
Add missing bump allocator initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mempler committed Dec 17, 2023
1 parent 6dc3789 commit d1c93e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kernel/source/Bootstrap/Limine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}

0 comments on commit d1c93e6

Please sign in to comment.