From 437e10e86cd415d5c2b0de104049cbaa3ef6c62d Mon Sep 17 00:00:00 2001 From: Curle Date: Mon, 19 Aug 2019 22:55:28 +0100 Subject: [PATCH] Prioritise output before all else, just so we know when the kernel actually works. --- kernel/bootstrap.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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();