From a22cec7930363642101076ab1bc6d0b78f3f31a2 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 20 Mar 2016 00:43:26 -0400 Subject: [PATCH] Print memory map information --- src/Main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Main.cc b/src/Main.cc index 2c574c3..fa6a74e 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -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);