Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/hppa Add missing MD code for posix_spawn



details:   https://anonhg.NetBSD.org/src/rev/d48cd20d9a1e
branches:  trunk
changeset: 773678:d48cd20d9a1e
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Feb 13 01:07:37 2012 +0000

description:
Add missing MD code for posix_spawn

diffstat:

 sys/arch/hppa/hppa/trap.c |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 594bf021ecd3 -r d48cd20d9a1e sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Mon Feb 13 01:04:26 2012 +0000
+++ b/sys/arch/hppa/hppa/trap.c Mon Feb 13 01:07:37 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.96 2011/01/23 09:44:59 skrll Exp $  */
+/*     $NetBSD: trap.c,v 1.97 2012/02/13 01:07:37 martin Exp $ */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.96 2011/01/23 09:44:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.97 2012/02/13 01:07:37 martin Exp $");
 
 /* #define INTRDEBUG */
 /* #define TRAPDEBUG */
@@ -1003,6 +1003,19 @@
 #endif /* DEBUG */
 }
 
+/*
+ * Process the tail end of a posix_spawn() for the child.
+ */
+void
+cpu_spawn_return(struct lwp *l)
+{
+       
+       userret(l, l->l_md.md_regs->tf_iioq_head, 0);
+#ifdef DEBUG
+       frame_sanity_check(__func__, __LINE__, 0, l->l_md.md_regs, l);
+#endif /* DEBUG */
+}
+
 #ifdef PTRACE
 
 #include <sys/ptrace.h>



Home | Main Index | Thread Index | Old Index