Module Name:    src
Committed By:   martin
Date:           Mon Feb 13 01:07:37 UTC 2012

Modified Files:
        src/sys/arch/hppa/hppa: trap.c

Log Message:
Add missing MD code for posix_spawn


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/arch/hppa/hppa/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hppa/hppa/trap.c
diff -u src/sys/arch/hppa/hppa/trap.c:1.96 src/sys/arch/hppa/hppa/trap.c:1.97
--- src/sys/arch/hppa/hppa/trap.c:1.96	Sun Jan 23 09:44:59 2011
+++ src/sys/arch/hppa/hppa/trap.c	Mon Feb 13 01:07:37 2012
@@ -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 @@ child_return(void *arg)
 #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>

Reply via email to