oops
This commit is contained in:
parent
e958c538fa
commit
69332d1918
2
main.c
2
main.c
|
@ -68,7 +68,7 @@ main0(void)
|
||||||
p->sz = 4 * PAGE;
|
p->sz = 4 * PAGE;
|
||||||
p->mem = kalloc(p->sz);
|
p->mem = kalloc(p->sz);
|
||||||
memset(p->mem, 0, p->sz);
|
memset(p->mem, 0, p->sz);
|
||||||
p->kstack = kalloc(KSTACKSIbZE);
|
p->kstack = kalloc(KSTACKSIZE);
|
||||||
p->tf = (struct trapframe *) (p->kstack + KSTACKSIZE) - 1;
|
p->tf = (struct trapframe *) (p->kstack + KSTACKSIZE) - 1;
|
||||||
memset(p->tf, 0, sizeof(struct trapframe));
|
memset(p->tf, 0, sizeof(struct trapframe));
|
||||||
p->tf->es = p->tf->ds = p->tf->ss = (SEG_UDATA << 3) | 3;
|
p->tf->es = p->tf->ds = p->tf->ss = (SEG_UDATA << 3) | 3;
|
||||||
|
|
Loading…
Reference in a new issue