Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't use CPU_RNG for rump kernels. So far there is...



details:   https://anonhg.NetBSD.org/src/rev/156b623f6253
branches:  trunk
changeset: 813938:156b623f6253
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Feb 27 14:30:33 2016 +0000

description:
Don't use CPU_RNG for rump kernels. So far there is no rump infrastructure
for this.

diffstat:

 sys/kern/kern_rndq.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r ed61d2970ed0 -r 156b623f6253 sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c      Sat Feb 27 14:28:50 2016 +0000
+++ b/sys/kern/kern_rndq.c      Sat Feb 27 14:30:33 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_rndq.c,v 1.82 2016/02/27 00:09:45 tls Exp $       */
+/*     $NetBSD: kern_rndq.c,v 1.83 2016/02/27 14:30:33 mlelstv Exp $   */
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.82 2016/02/27 00:09:45 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.83 2016/02/27 14:30:33 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -59,7 +59,7 @@
 #include <compat/sys/rnd.h>
 #endif
 
-#if defined(__HAVE_CPU_RNG)
+#if defined(__HAVE_CPU_RNG) && !defined(_RUMPKERNEL)
 #include <machine/cpu_rng.h>
 #endif
 
@@ -405,7 +405,7 @@
        return ret;
 }
 
-#if defined(__HAVE_CPU_RNG)
+#if defined(__HAVE_CPU_RNG) && !defined(_RUMPKERNEL)
 static struct {
        kmutex_t        lock;   /* unfortunately, must protect krndsource */
        krndsource_t    source;
@@ -588,7 +588,7 @@
        /*
         * Attach CPU RNG if available.
         */
-#if defined(__HAVE_CPU_RNG)
+#if defined(__HAVE_CPU_RNG) && !defined(_RUMPKERNEL)
        if (cpu_rng_init()) {
                /* IPL_VM because taken while rnd_global.lock is held.  */
                mutex_init(&rnd_cpu.lock, MUTEX_DEFAULT, IPL_VM);



Home | Main Index | Thread Index | Old Index