Mercurial > lcfOS
diff cos/kernel/mm.c @ 32:3a6a9b929db0
Added initial ramdisk and some virtual file system functions
author | windel |
---|---|
date | Fri, 13 Jan 2012 18:18:17 +0100 |
parents | 0148f55bfe24 |
children | 8012221dd740 |
line wrap: on
line diff
--- a/cos/kernel/mm.c Tue Jan 10 20:40:35 2012 +0100 +++ b/cos/kernel/mm.c Fri Jan 13 18:18:17 2012 +0100 @@ -58,8 +58,8 @@ // Memory manager functions: void init_memory(uint64_t total_mem_size) { - printf("Size of PT_t = %d\n", sizeof(PD_t)); - printf("Size of page_t = %d\n", sizeof(page_t)); + // Only here placement malloc is used! + // // Allocate and clear bits to remember which 4kb-frames are in use: nframes = (total_mem_size / 0x1000); frames = (uint64_t*)kmalloc_int( (nframes / 64) * sizeof(uint64_t) );