Skip to content

Commit 1b40acd

Browse files
swap these, we need the GDT address and page table address before we start building heap
1 parent ecfb6b1 commit 1b40acd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spinlock_t console_spinlock = 0;
66
spinlock_t debug_console_spinlock = 0;
77

88
init_func_t init_funcs[] = {
9-
init_heap, validate_limine_page_tables_and_gdt, init_console,
9+
validate_limine_page_tables_and_gdt, init_heap, init_console,
1010
init_acpi, init_idt, boot_aps, init_pci, init_realtime_clock,
1111
init_devicenames, init_keyboard, init_ide, init_ahci,
1212
init_filesystem, init_devfs, init_iso9660, init_fat32,
@@ -15,7 +15,7 @@ init_func_t init_funcs[] = {
1515
};
1616

1717
char* init_funcs_names[] = {
18-
"heap", "gdt", "console", "acpi",
18+
"gdt", "heap", "console", "acpi",
1919
"idt", "cpus", "pci", "clock",
2020
"devicenames", "keyboard", "ide", "ahci",
2121
"filesystem", "devfs", "iso9660", "fat32",

0 commit comments

Comments
 (0)