xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1d7839a1daab5ebc37c4be4eded849714ff8f329
parent e9ddc7c099b8f34a76295b60e0d93e033a9272b7
Author: rsc <rsc>
Date:   Wed, 22 Aug 2007 17:45:52 +0000

my mistake found by robert

Diffstat:
Mproc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proc.c b/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;