summaryrefslogtreecommitdiff
path: root/main.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 /main.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 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 1a49bc6..878ea36 100644
--- a/main.c
+++ b/main.c
@@ -28,7 +28,7 @@ main(void)
void
jkstack(void)
{
- char *kstack = kalloc(PGSIZE);
+ char *kstack = kalloc();
if (!kstack)
panic("jkstack\n");
char *top = kstack + PGSIZE;
@@ -92,7 +92,7 @@ bootothers(void)
continue;
// Fill in %esp, %eip and start code on cpu.
- stack = kalloc(KSTACKSIZE);
+ stack = kalloc();
*(void**)(code-4) = stack + KSTACKSIZE;
*(void**)(code-8) = mpmain;
lapicstartap(c->id, (uint)code);