diff options
author | rtm <rtm> | 2006-08-30 18:55:06 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-08-30 18:55:06 +0000 |
commit | 2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e (patch) | |
tree | 63446e3d197769ba44a9e32a30a284327ec93af8 /proc.c | |
parent | 18432ed5edaeb2a6ffd91f557880c277d96784c1 (diff) | |
download | xv6-labs-2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e.tar.gz xv6-labs-2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e.tar.bz2 xv6-labs-2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e.zip |
complain if no disk 1
lots of cleanup
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |