From 2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e Mon Sep 17 00:00:00 2001 From: rtm Date: Wed, 30 Aug 2006 18:55:06 +0000 Subject: complain if no disk 1 lots of cleanup --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 401188e..80141db 100644 --- a/proc.c +++ b/proc.c @@ -113,7 +113,7 @@ copyproc(struct proc* p) // Copy trapframe registers from parent. np->tf = (struct trapframe*)(np->kstack + KSTACKSIZE) - 1; - *np->tf = *p->tf; + memmove(np->tf, p->tf, sizeof(*np->tf)); // Clear %eax so that fork system call returns 0 in child. np->tf->eax = 0; -- cgit v1.2.3