more trivial cleanup

This commit is contained in:
Russ Cox 2011-01-11 13:51:40 -05:00
parent 89bfdd4db1
commit 417c37115e
3 changed files with 13 additions and 16 deletions

View file

@ -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);
}