my mistake found by robert
This commit is contained in:
parent
e9ddc7c099
commit
1d7839a1da
2
proc.c
2
proc.c
|
@ -156,7 +156,7 @@ userinit(void)
|
|||
p->sz = PAGE;
|
||||
p->mem = kalloc(p->sz);
|
||||
p->cwd = namei("/");
|
||||
memset(&p->tf, 0, sizeof(p->tf));
|
||||
memset(p->tf, 0, sizeof(*p->tf));
|
||||
p->tf->es = p->tf->ds = p->tf->ss = (SEG_UDATA << 3) | DPL_USER;
|
||||
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
|
||||
p->tf->eflags = FL_IF;
|
||||
|
|
Loading…
Reference in a new issue