This commit is contained in:
kaashoek 2006-08-15 15:54:53 +00:00
parent e958c538fa
commit 69332d1918

2
main.c
View file

@ -68,7 +68,7 @@ main0(void)
p->sz = 4 * PAGE;
p->mem = kalloc(p->sz);
memset(p->mem, 0, p->sz);
p->kstack = kalloc(KSTACKSIbZE);
p->kstack = kalloc(KSTACKSIZE);
p->tf = (struct trapframe *) (p->kstack + KSTACKSIZE) - 1;
memset(p->tf, 0, sizeof(struct trapframe));
p->tf->es = p->tf->ds = p->tf->ss = (SEG_UDATA << 3) | 3;