From 7dc39cf628cd1df718070229826953bb1ddadfe0 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 6 Feb 2020 15:11:59 +0100 Subject: [PATCH] Correcting bug --- kaleid/kernel/init/init.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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();