printing memory map, used pages, and free pages on boot
git-svn-id: svn://anubis/hos/trunk@58 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
1 parent
fd02ee26e1
commit
c21caccb1f
3 files changed
+24
-5
No files matched your search
@@ -1,15 +1,12 @@
|
||||
|
||||
#include "lang/kio.h"
|
||||
#include "mm/mm.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
void k_main()
|
||||
{
|
||||
kprintf("Hi from k_main()!\n");
|
||||
kprintf("padded 8 hex: 0x%08x|\n", 0x42);
|
||||
kprintf("padded -4 hex: 0x%-4x|\n", 0x42);
|
||||
kprintf("padded 20 str: %20s|\n", "hi there");
|
||||
kprintf("padded -20 str: %-20s|\n", "hi there");
|
||||
mm_print_memory_map();
|
||||
}
|
||||
|
||||
} /* extern "C" */
|
||||
Reference in new issue
Block a user