summaryrefslogtreecommitdiff
path: root/umalloc.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2010-08-31 12:54:47 -0400
committerRobert Morris <[email protected]>2010-08-31 12:54:47 -0400
commit7d7dc9331bf33f77c9c3a71350782dadae8dd371 (patch)
tree4c9d10f56fe4f69b97820ef94db93f30acda6e65 /umalloc.c
parent81b30b14d6925a0f5c9eb114724457d90869949c (diff)
downloadxv6-labs-7d7dc9331bf33f77c9c3a71350782dadae8dd371.tar.gz
xv6-labs-7d7dc9331bf33f77c9c3a71350782dadae8dd371.tar.bz2
xv6-labs-7d7dc9331bf33f77c9c3a71350782dadae8dd371.zip
kalloc/kfree now only a page at a time
do not keep sorted contiguous free list
Diffstat (limited to 'umalloc.c')
-rw-r--r--umalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/umalloc.c b/umalloc.c
index afc86a5..4984591 100644
--- a/umalloc.c
+++ b/umalloc.c
@@ -49,8 +49,8 @@ morecore(uint nu)
char *p;
Header *hp;
- if(nu < PAGE)
- nu = PAGE;
+ if(nu < 4096)
+ nu = 4096;
p = sbrk(nu * sizeof(Header));
if(p == (char*) -1)
return 0;