From 46380598001ee033ed19ebba4f9f5375122e2200 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Wed, 19 Jan 2011 10:16:33 -0600 Subject: [PATCH] [main] Display RAM limits on boot --- .gitignore | 1 + main.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c8583381..29f1fcf8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ kernel *.o +bootdisk.img diff --git a/main.c b/main.c index 887cff7c..e3070eaf 100644 --- a/main.c +++ b/main.c @@ -172,12 +172,16 @@ main(struct multiboot *mboot_ptr) { kprintf("Testing colors...\n"); resettextcolor(); int i; - for (i = 0; i < 256; ++i) { + for (i = 0; i < 16; ++i) { settextcolor(i,i); putch(' '); } + putch('\n'); resettextcolor(); - + kprintf("%dkB lower memory\n", mboot_ptr->mem_lower); + kprintf("%dkB higher memory ", mboot_ptr->mem_upper); + int mem_mb = mboot_ptr->mem_upper / 1024; + kprintf("(%dMB)\n", mem_mb); //for (;;); return 0;