Remove double mapping of stack

This commit is contained in:
leo 1995-05-14 15:24:35 +00:00
parent 92d594935c
commit 72472e35b1
1 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.5 1995/05/05 16:35:27 leo Exp $ */
/* $NetBSD: trap.c,v 1.6 1995/05/14 15:24:35 leo Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -815,6 +815,24 @@ syscall(code, frame)
#endif
}
/*
* Process the tail end of a fork() for the child
*/
void
child_return(p, frame)
struct proc *p;
struct frame frame;
{
frame.f_regs[D0] = 0;
frame.f_sr &= ~PSL_C; /* carry bit */
userret(p, frame.f_pc, p->p_sticks);
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSRET))
ktrsysret(p->p_tracep, SYS_fork, 0, 0);
#endif
}
/*
* Process a pending write back
*/