Print memory map information
This commit is contained in:
parent
84b0ab7613
commit
a22cec7930
1 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,11 @@ kmain(multiboot::Information *information)
|
|||
|
||||
console.printString("Loading Polka ...\n");
|
||||
|
||||
console.printFormat("Detected memory: lower = %ld KB, upper = %ld KB\n", info->lowerMemoryKB(), info->upperMemoryKB());
|
||||
console.printFormat("Command line: \"%s\"\n", info->commandLine());
|
||||
|
||||
console.printFormat("Memory map:\n");
|
||||
console.printFormat(" available: lower = %ld KB, upper = %ld KB\n", info->lowerMemoryKB(), info->upperMemoryKB());
|
||||
// TODO: Print memory map, after determining that the info struct is correct.
|
||||
|
||||
auto& gdt = x86::GDT::systemGDT();
|
||||
gdt.setNullDescriptor(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue