Add missing MD code for posix_spawn

This commit is contained in:
martin 2012-02-13 01:07:37 +00:00
parent c75ce34822
commit a1d752b60f
1 changed files with 15 additions and 2 deletions

View File

@ -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>