add proc ptr

This commit is contained in:
cgd 1994-02-15 06:59:33 +00:00
parent 022a8ce9c5
commit 3e54f0cda2
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
* $Id: trap.c,v 1.27 1994/02/15 06:49:03 cgd Exp $
* $Id: trap.c,v 1.28 1994/02/15 06:59:33 cgd Exp $
*/
/*
@ -491,7 +491,7 @@ syscall(frame)
frame.tf_eax = error;
frame.tf_eflags |= PSL_C; /* carry bit */
#ifdef SYSCALL_DEBUG
scdebug_call(code, callp->sy_narg, &args);
scdebug_call(p, code, callp->sy_narg, &args);
#endif
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSCALL))
@ -500,7 +500,7 @@ syscall(frame)
goto done;
}
#ifdef SYSCALL_DEBUG
scdebug_call(code, callp->sy_narg, &args);
scdebug_call(p, code, callp->sy_narg, &args);
#endif
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSCALL))
@ -529,7 +529,7 @@ done:
*/
p = curproc;
#ifdef SYSCALL_DEBUG
scdebug_ret(code, error, rval[0]);
scdebug_ret(p, code, error, rval[0]);
#endif
userret(p, frame.tf_eip, sticks);
#ifdef KTRACE