Prioritise output before all else, just so we know when the kernel actually works.

This commit is contained in:
Curle 2019-08-19 22:55:28 +01:00
parent 24aad1e4a5
commit 437e10e86c

View File

@ -44,12 +44,18 @@ void PrepareSystem(FILELOADER_PARAMS* FLOP) {
Memory_Info.MemoryMapDescriptorSize = FLOP->MemoryMapDescriptorSize; Memory_Info.MemoryMapDescriptorSize = FLOP->MemoryMapDescriptorSize;
Memory_Info.MemoryMapDescriptorVersion = FLOP->MemoryMapDescriptorVersion; 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) { if(SetIdentityMap(FLOP->RTServices) == NULL) {
Memory_Info.MemoryMap = FLOP->MemoryMap; Memory_Info.MemoryMap = FLOP->MemoryMap;
} }
SetupPrinting(FLOP->GPU_Info->GPUs[0]);
/* All print functions are now available. */
PrepareAVX(); PrepareAVX();
@ -90,8 +96,6 @@ void PrepareSystem(FILELOADER_PARAMS* FLOP) {
} }
// Set up memory management // Set up memory management
InstallGDT();
InstallIDT();
InstallMemoryMap(); InstallMemoryMap();
InstallPaging(); InstallPaging();