Format
This commit is contained in:
parent
bccc0b5200
commit
b8bf28f597
1 changed files with 2 additions and 0 deletions
|
@ -67,7 +67,9 @@ void *kalloc(void) {
|
||||||
|
|
||||||
if (r)
|
if (r)
|
||||||
kmem.freelist = r->next;
|
kmem.freelist = r->next;
|
||||||
|
|
||||||
release(&kmem.lock);
|
release(&kmem.lock);
|
||||||
|
|
||||||
if (r)
|
if (r)
|
||||||
memset((char *)r, 5, PGSIZE); // fill with junk
|
memset((char *)r, 5, PGSIZE); // fill with junk
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue