more trivial cleanup
This commit is contained in:
parent
89bfdd4db1
commit
417c37115e
3 changed files with 13 additions and 16 deletions
2
kalloc.c
2
kalloc.c
|
@ -27,7 +27,7 @@ kinit(void)
|
|||
|
||||
initlock(&kmem.lock, "kmem");
|
||||
p = (char*)PGROUNDUP((uint)end);
|
||||
for(; p + PGSIZE - 1 < (char*)PHYSTOP; p += PGSIZE)
|
||||
for(; p + PGSIZE <= (char*)PHYSTOP; p += PGSIZE)
|
||||
kfree(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue