mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
clean-up
This commit is contained in:
parent
bc82695e26
commit
858ed26e78
@ -22,7 +22,6 @@
|
|||||||
// along with OS/K. If not, see <https://www.gnu.org/licenses/>. //
|
// along with OS/K. If not, see <https://www.gnu.org/licenses/>. //
|
||||||
//----------------------------------------------------------------------------//
|
//----------------------------------------------------------------------------//
|
||||||
|
|
||||||
#include <kernel/multiboot.h>
|
|
||||||
#include <kernel/term.h>
|
#include <kernel/term.h>
|
||||||
#include <kernel/panic.h>
|
#include <kernel/panic.h>
|
||||||
#include <kernel/mm.h>
|
#include <kernel/mm.h>
|
||||||
@ -34,8 +33,8 @@
|
|||||||
void InitBootInfo(multiboot_info_t *mbi)
|
void InitBootInfo(multiboot_info_t *mbi)
|
||||||
{
|
{
|
||||||
extern uint MB_header;
|
extern uint MB_header;
|
||||||
char okStr[] = "available";
|
char *okStr = "available";
|
||||||
char noStr[] = "unavailable";
|
char *noStr = "unavailable";
|
||||||
|
|
||||||
// We need the multiboot structure
|
// We need the multiboot structure
|
||||||
KalAlwaysAssert(mbi);
|
KalAlwaysAssert(mbi);
|
||||||
@ -88,23 +87,22 @@ void InitBootInfo(multiboot_info_t *mbi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Now we check (debug)
|
//Now we check (debug)
|
||||||
DebugLog("\n[InitBootInfo] Flags : %b",
|
/*DebugLog("[InitBootInfo] Flags : %b\n\n",
|
||||||
GetBootInfo(btldr).grubFlags);
|
GetBootInfo(btldr).grubFlags);*/
|
||||||
DebugLog("\n[InitBootInfo] Boot loader %s",
|
DebugLog("[InitBootInfo] Boot loader %s\n",
|
||||||
GetBootInfo(btldr).valid ? &okStr : &noStr);
|
GetBootInfo(btldr).valid ? okStr : noStr);
|
||||||
DebugLog("\n[InitBootInfo] Boot drive %s",
|
DebugLog("[InitBootInfo] Boot drive %s\n",
|
||||||
GetBootInfo(drives).drvValid ? &okStr : &noStr);
|
GetBootInfo(drives).drvValid ? okStr : noStr);
|
||||||
DebugLog("\n[InitBootInfo] Disk buffer %s",
|
DebugLog("[InitBootInfo] Disk buffer %s\n",
|
||||||
GetBootInfo(drives).bufferValid ? &okStr : &noStr);
|
GetBootInfo(drives).bufferValid ? okStr : noStr);
|
||||||
DebugLog("\n[InitBootInfo] Basic mem %s",
|
DebugLog("[InitBootInfo] Basic mem %s\n",
|
||||||
GetBootInfo(memory).memValid ? &okStr : &noStr);
|
GetBootInfo(memory).memValid ? okStr : noStr);
|
||||||
DebugLog("\n[InitBootInfo] Memory map %s",
|
DebugLog("[InitBootInfo] Memory map %s\n",
|
||||||
GetBootInfo(memory).mapValid ? &okStr : &noStr);
|
GetBootInfo(memory).mapValid ? okStr : noStr);
|
||||||
DebugLog("\n[InitBootInfo] ROM table %s",
|
DebugLog("[InitBootInfo] ROM table %s\n",
|
||||||
GetBootInfo(firmware).romValid ? &okStr : &noStr);
|
GetBootInfo(firmware).romValid ? okStr : noStr);
|
||||||
DebugLog("\n[InitBootInfo] APM table %s",
|
DebugLog("[InitBootInfo] APM table %s\n\n",
|
||||||
GetBootInfo(firmware).apmValid ? &okStr : &noStr);
|
GetBootInfo(firmware).apmValid ? okStr : noStr);
|
||||||
DebugLog("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -123,7 +121,7 @@ noreturn void StartKern(multiboot_info_t *mbInfo, int mbMagic)
|
|||||||
KernLog("%c%c%c OS/K\n\n", 219, 219, 219);
|
KernLog("%c%c%c OS/K\n\n", 219, 219, 219);
|
||||||
|
|
||||||
KalAlwaysAssert(mbMagic == MULTIBOOT_BOOTLOADER_MAGIC);
|
KalAlwaysAssert(mbMagic == MULTIBOOT_BOOTLOADER_MAGIC);
|
||||||
KernLog("[Init] We have magic : %x\n", mbMagic);
|
KernLog("[Init] We have magic : %x\n\n", mbMagic);
|
||||||
|
|
||||||
//Initialize the BootInfo_t structure
|
//Initialize the BootInfo_t structure
|
||||||
InitBootInfo(mbInfo);
|
InitBootInfo(mbInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user