diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-01-19 00:22:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-01-19 00:22:59 +0000 |
commit | a7223a3f63651e63c62951e53ad1978231f55945 (patch) | |
tree | 27df8d06ce60ef082a5fa8051e83b880457db430 /sys | |
parent | beab98e096cab8ad7fc9e8ec42666d078c86555b (diff) |
We can call random_start() immediately after cpu_startup, that is the
point at which everything it does is safe, including msg buffer access.
ok kettenis jsing
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/init_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 185b9ba113c..809a592ddcc 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.197 2014/01/01 07:08:10 fgsch Exp $ */ +/* $OpenBSD: init_main.c,v 1.198 2014/01/19 00:22:58 deraadt Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -225,6 +225,8 @@ main(void *framep) tty_init(); /* initialise tty's */ cpu_startup(); + random_start(); /* Start the flow */ + /* * Initialize mbuf's. Do this now because we might attempt to * allocate mbufs or mbuf clusters during autoconfiguration. @@ -335,8 +337,6 @@ main(void *framep) sched_init_runqueues(); sleep_queue_init(); sched_init_cpu(curcpu()); - - random_start(); srandom(arc4random()); /* Initialize work queues */ |