oops
This commit is contained in:
parent
e958c538fa
commit
69332d1918
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue