stuff !
This commit is contained in:
parent
5fc538c9d2
commit
bc82695e26
|
@ -33,9 +33,12 @@
|
||||||
//
|
//
|
||||||
void InitBootInfo(multiboot_info_t *mbi)
|
void InitBootInfo(multiboot_info_t *mbi)
|
||||||
{
|
{
|
||||||
|
extern uint MB_header;
|
||||||
|
char okStr[] = "available";
|
||||||
|
char noStr[] = "unavailable";
|
||||||
|
|
||||||
// We need the multiboot structure
|
// We need the multiboot structure
|
||||||
KalAlwaysAssert(mbi);
|
KalAlwaysAssert(mbi);
|
||||||
extern uint MB_header;
|
|
||||||
|
|
||||||
//Retrieves the bootloader flags to ensure infos are valid
|
//Retrieves the bootloader flags to ensure infos are valid
|
||||||
GetBootInfo(btldr).grubFlags = mbi->flags;
|
GetBootInfo(btldr).grubFlags = mbi->flags;
|
||||||
|
@ -85,20 +88,23 @@ void InitBootInfo(multiboot_info_t *mbi)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Now we check (debug)
|
//Now we check (debug)
|
||||||
|
DebugLog("\n[InitBootInfo] Flags : %b",
|
||||||
|
GetBootInfo(btldr).grubFlags);
|
||||||
DebugLog("\n[InitBootInfo] Boot loader %s",
|
DebugLog("\n[InitBootInfo] Boot loader %s",
|
||||||
GetBootInfo(btldr).valid ? "present" : "");
|
GetBootInfo(btldr).valid ? &okStr : &noStr);
|
||||||
DebugLog("\n[InitBootInfo] Boot drive %s",
|
DebugLog("\n[InitBootInfo] Boot drive %s",
|
||||||
GetBootInfo(drives).drvValid ? "present" : "");
|
GetBootInfo(drives).drvValid ? &okStr : &noStr);
|
||||||
DebugLog("\n[InitBootInfo] Disk buffer %s",
|
DebugLog("\n[InitBootInfo] Disk buffer %s",
|
||||||
GetBootInfo(drives).bufferValid ? "present" : "");
|
GetBootInfo(drives).bufferValid ? &okStr : &noStr);
|
||||||
DebugLog("\n[InitBootInfo] Basic mem %s",
|
DebugLog("\n[InitBootInfo] Basic mem %s",
|
||||||
GetBootInfo(memory).memValid ? "present" : "");
|
GetBootInfo(memory).memValid ? &okStr : &noStr);
|
||||||
DebugLog("\n[InitBootInfo] Memory map %s",
|
DebugLog("\n[InitBootInfo] Memory map %s",
|
||||||
GetBootInfo(memory).mapValid ? "present" : "");
|
GetBootInfo(memory).mapValid ? &okStr : &noStr);
|
||||||
DebugLog("\n[InitBootInfo] ROM table %s",
|
DebugLog("\n[InitBootInfo] ROM table %s",
|
||||||
GetBootInfo(firmware).romValid ? "present" : "");
|
GetBootInfo(firmware).romValid ? &okStr : &noStr);
|
||||||
DebugLog("\n[InitBootInfo] APM table %s",
|
DebugLog("\n[InitBootInfo] APM table %s",
|
||||||
GetBootInfo(firmware).apmValid ? "present\n" : "\n");
|
GetBootInfo(firmware).apmValid ? &okStr : &noStr);
|
||||||
|
DebugLog("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue