Correcting bug

This commit is contained in:
Adrien Bourmault 2020-02-06 15:11:59 +01:00
parent f4055f9586
commit 7dc39cf628
1 changed files with 2 additions and 4 deletions

View File

@ -67,6 +67,8 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
// Memory // Memory
MmInitMemoryMap(); MmInitMemoryMap();
MmInitHeap(); MmInitHeap();
MmInitGdt();
MmInitPaging();
// Interrupts // Interrupts
KeSetupIDT(); KeSetupIDT();
@ -74,10 +76,6 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
KeEnableRTC(); KeEnableRTC();
KeEnablePIT(); KeEnablePIT();
// Memory (2)
MmInitGdt();
MmInitPaging();
// Interrupt handlers // Interrupt handlers
MmActivatePageHandler(); MmActivatePageHandler();
KeGetCpuInfos(); KeGetCpuInfos();