This commit is contained in:
rtm 2006-09-04 11:52:36 +00:00
parent 97c74a3a64
commit 82537b7156
2 changed files with 11 additions and 13 deletions

View file

@ -38,7 +38,7 @@ kinit(void)
initlock(&kalloc_lock, "kalloc");
start = (char *) &end;
start = (char *) (((uint)start + PAGE) & ~(PAGE-1));
mem = 256; // XXX
mem = 256; // assume 256 pages of RAM
cprintf("mem = %d\n", mem * PAGE);
kfree(start, mem * PAGE);
}