diff options
Diffstat (limited to 'kalloc.c')
-rw-r--r-- | kalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |