[main] Display RAM limits on boot

This commit is contained in:
Kevin Lange 2011-01-19 10:16:33 -06:00
parent e349d70557
commit 4638059800
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
kernel
*.o
bootdisk.img

8
main.c
View File

@ -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;