Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode Add cpu_spawn_return() as per oth...



details:   https://anonhg.NetBSD.org/src/rev/d5339056f8e4
branches:  trunk
changeset: 773711:d5339056f8e4
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Feb 13 19:15:59 2012 +0000

description:
Add cpu_spawn_return() as per other archs to make it compile. No tests done
yet.

diffstat:

 sys/arch/usermode/usermode/syscall.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 8fc4d11fc035 -r d5339056f8e4 sys/arch/usermode/usermode/syscall.c
--- a/sys/arch/usermode/usermode/syscall.c      Mon Feb 13 19:15:30 2012 +0000
+++ b/sys/arch/usermode/usermode/syscall.c      Mon Feb 13 19:15:59 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.22 2012/01/14 21:45:28 reinoud Exp $ */
+/* $NetBSD: syscall.c,v 1.23 2012/02/13 19:15:59 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.22 2012/01/14 21:45:28 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.23 2012/02/13 19:15:59 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -63,6 +63,16 @@
        ktrsysret(SYS_fork, 0, 0);
 }
 
+/*
+ * Process the tail end of a posix_spawn() for the child.
+ */
+void
+cpu_spawn_return(struct lwp *l)
+{
+
+       userret(l);
+}
+
 extern const char *const syscallnames[];
 
 static void syscall_args_print(lwp_t *l, int code, int nargs, int argsize,



Home | Main Index | Thread Index | Old Index