diff options
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -104,7 +104,7 @@ copyproc(struct proc* p) *np->tf = *p->tf; // Clear %eax so that fork system call returns 0 in child. - np->tf->regs.eax = 0; + np->tf->eax = 0; // Set up new jmpbuf to start executing at forkret (see below). memset(&np->jmpbuf, 0, sizeof np->jmpbuf); |