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