some comment changes
This commit is contained in:
parent
50f8850366
commit
8e1d1ec934
7 changed files with 15 additions and 16 deletions
2
kalloc.c
2
kalloc.c
|
@ -35,7 +35,7 @@ kinit(void)
|
|||
initlock(&kalloc_lock, "kalloc");
|
||||
start = (char*) &end;
|
||||
start = (char*) (((uint)start + PAGE) & ~(PAGE-1));
|
||||
mem = 256; // assume 256 pages of RAM
|
||||
mem = 256; // assume computer has 256 pages of RAM
|
||||
cprintf("mem = %d\n", mem * PAGE);
|
||||
kfree(start, mem * PAGE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue