diff --git a/kernel/bootstrap.c b/kernel/bootstrap.c index e2612f2..908ece4 100644 --- a/kernel/bootstrap.c +++ b/kernel/bootstrap.c @@ -44,12 +44,18 @@ void PrepareSystem(FILELOADER_PARAMS* FLOP) { Memory_Info.MemoryMapDescriptorSize = FLOP->MemoryMapDescriptorSize; Memory_Info.MemoryMapDescriptorVersion = FLOP->MemoryMapDescriptorVersion; + + SetupPrinting(FLOP->GPU_Info->GPUs[0]); + /* All print functions are now available. */ + printf("ready!"); + + InstallGDT(); + InstallIDT(); + if(SetIdentityMap(FLOP->RTServices) == NULL) { Memory_Info.MemoryMap = FLOP->MemoryMap; } - SetupPrinting(FLOP->GPU_Info->GPUs[0]); - /* All print functions are now available. */ PrepareAVX(); @@ -90,8 +96,6 @@ void PrepareSystem(FILELOADER_PARAMS* FLOP) { } // Set up memory management - InstallGDT(); - InstallIDT(); InstallMemoryMap(); InstallPaging();