From 7775733971265c86f17aa85593dae0467a3600cb Mon Sep 17 00:00:00 2001 From: reinoud Date: Mon, 13 Feb 2012 19:15:59 +0000 Subject: [PATCH] Add cpu_spawn_return() as per other archs to make it compile. No tests done yet. --- sys/arch/usermode/usermode/syscall.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sys/arch/usermode/usermode/syscall.c b/sys/arch/usermode/usermode/syscall.c index 0e6445d93a1e..9ef6e4e1fded 100644 --- a/sys/arch/usermode/usermode/syscall.c +++ b/sys/arch/usermode/usermode/syscall.c @@ -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 @@ -27,7 +27,7 @@ */ #include -__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 #include @@ -63,6 +63,16 @@ child_return(void *arg) 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,