child_return() should take void *arg.
This commit is contained in:
parent
bebb7b9aee
commit
5afb55f9cd
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.13 2000/06/06 18:52:45 soren Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.14 2000/06/07 11:34:17 tsubai Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
@ -567,16 +567,16 @@ syscall(frame)
|
||||
}
|
||||
|
||||
void
|
||||
child_return(p, p2, p3, p4, frame)
|
||||
struct proc *p;
|
||||
int p2, p3, p4; /* dummy param */
|
||||
struct trapframe frame;
|
||||
child_return(arg)
|
||||
void *arg;
|
||||
{
|
||||
struct proc *p = arg;
|
||||
struct trapframe *tf = p->p_md.md_regs;
|
||||
|
||||
frame.tf_r0 = 0;
|
||||
frame.tf_ssr |= PSL_TBIT; /* This indicates no error. */
|
||||
tf->tf_r0 = 0;
|
||||
tf->tf_ssr |= PSL_TBIT; /* This indicates no error. */
|
||||
|
||||
userret(p, frame.tf_spc, 0);
|
||||
userret(p, tf->tf_spc, 0);
|
||||
#ifdef KTRACE
|
||||
if (KTRPOINT(p, KTR_SYSRET))
|
||||
ktrsysret(p, SYS_fork, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user