summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1999-08-17 10:32:16 +0000
committerniklas <niklas@openbsd.org>1999-08-17 10:32:16 +0000
commit9c2090272aee3ad7a054aba6b9736090fb33f78a (patch)
treed1801380d9503618e35645ab16f44d5be0d8c201 /sys/kern/kern_kthread.c
parentMore <sys/file.h> vs. <fcntl.h> and open() flags fixes. (diff)
downloadwireguard-openbsd-9c2090272aee3ad7a054aba6b9736090fb33f78a.tar.xz
wireguard-openbsd-9c2090272aee3ad7a054aba6b9736090fb33f78a.zip
New cpu_fork API to take a stack in which you point the child's stackpointer
to, at the bottom or the top, depending on your architecture's stack growth direction. This is in preparation for Linux' clone(2) emulation. port maintainers, please check that I did the work right.
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 21e11e5cf04..37b488c65be 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_kthread.c,v 1.3 1999/01/26 23:07:26 niklas Exp $ */
+/* $OpenBSD: kern_kthread.c,v 1.4 1999/08/17 10:32:18 niklas Exp $ */
/* $NetBSD: kern_kthread.c,v 1.3 1998/12/22 21:21:36 kleink Exp $ */
/*-
@@ -83,7 +83,8 @@ kthread_create(func, arg, newpp, fmt, va_alist)
* descriptors and don't leave the exit status around for the
* parent to wait for.
*/
- error = fork1(&proc0, ISRFORK, RFPROC | RFMEM | RFFDG | RFNOWAIT, rv);
+ error = fork1(&proc0, ISRFORK, RFPROC | RFMEM | RFFDG | RFNOWAIT, NULL,
+ 0, rv);
if (error)
return (error);