diff --git a/kaleid/kernel/init/init.c b/kaleid/kernel/init/init.c index f211ca7..40ddcf9 100644 --- a/kaleid/kernel/init/init.c +++ b/kaleid/kernel/init/init.c @@ -67,6 +67,8 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg) // Memory MmInitMemoryMap(); MmInitHeap(); + MmInitGdt(); + MmInitPaging(); // Interrupts KeSetupIDT(); @@ -74,10 +76,6 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg) KeEnableRTC(); KeEnablePIT(); - // Memory (2) - MmInitGdt(); - MmInitPaging(); - // Interrupt handlers MmActivatePageHandler(); KeGetCpuInfos();