Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 child_return() should take void *arg.
details: https://anonhg.NetBSD.org/src/rev/997e43629972
branches: trunk
changeset: 487406:997e43629972
user: tsubai <tsubai%NetBSD.org@localhost>
date: Wed Jun 07 11:34:17 2000 +0000
description:
child_return() should take void *arg.
diffstat:
sys/arch/sh3/sh3/trap.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (33 lines):
diff -r 51766790a3a8 -r 997e43629972 sys/arch/sh3/sh3/trap.c
--- a/sys/arch/sh3/sh3/trap.c Wed Jun 07 11:23:17 2000 +0000
+++ b/sys/arch/sh3/sh3/trap.c Wed Jun 07 11:34:17 2000 +0000
@@ -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 @@
}
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);
Home |
Main Index |
Thread Index |
Old Index