summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2000-06-18 03:07:48 +0000
committerangelos <angelos@openbsd.org>2000-06-18 03:07:48 +0000
commite52f30d4d288daeae510401936533eb59ff85683 (patch)
treef480a09d60a200dab62b0c2a084eb7bdeea11fdf
parentThe callbacks need to set the appropriate spl level now. (diff)
downloadwireguard-openbsd-e52f30d4d288daeae510401936533eb59ff85683.tar.xz
wireguard-openbsd-e52f30d4d288daeae510401936533eb59ff85683.zip
Process ID 5 is now the crypto kernel thread.
-rw-r--r--sys/kern/init_main.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d7e328fc000..b0c9edbd48b 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.54 2000/06/16 21:47:14 provos Exp $ */
+/* $OpenBSD: init_main.c,v 1.55 2000/06/18 03:07:48 angelos Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -137,6 +137,7 @@ void start_init __P((void *));
void start_pagedaemon __P((void *));
void start_update __P((void *));
void start_reaper __P((void *));
+void start_crypto __P((void *));
#ifdef cpu_set_init_frame
void *initframep; /* XXX should go away */
@@ -441,6 +442,12 @@ main(framep)
#endif
}
+#ifdef CRYPTO
+ /* Create process 5, the crypto kernel thread. */
+ if (kthread_create(start_crypto, NULL, NULL, "crypto"))
+ panic("crypto thread");
+#endif /* CRYPTO */
+
/* Create any other deferred kernel threads. */
kthread_run_deferred_queue();
@@ -666,3 +673,13 @@ start_reaper(arg)
reaper();
/* NOTREACHED */
}
+
+#ifdef CRYPTO
+void
+start_crypto(arg)
+ void *arg;
+{
+ crypto_thread();
+ /* NOTREACHED */
+}
+#endif /* CRYPTO */