Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Contribute to the rnd entropy pool (already attac...



details:   https://anonhg.NetBSD.org/src/rev/221db8d61911
branches:  trunk
changeset: 586786:221db8d61911
user:      heas <heas%NetBSD.org@localhost>
date:      Mon Jan 02 05:46:25 2006 +0000

description:
Contribute to the rnd entropy pool (already attached as a source).

diffstat:

 sys/dev/ic/gem.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a777c27083d0 -r 221db8d61911 sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c  Mon Jan 02 01:42:36 2006 +0000
+++ b/sys/dev/ic/gem.c  Mon Jan 02 05:46:25 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gem.c,v 1.44 2005/12/11 12:21:26 christos Exp $ */
+/*     $NetBSD: gem.c,v 1.45 2006/01/02 05:46:25 heas Exp $ */
 
 /*
  *
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.44 2005/12/11 12:21:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.45 2006/01/02 05:46:25 heas Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -1793,6 +1793,9 @@
                        printf("%s: MAC rx fault, status %x\n",
                            sc->sc_dev.dv_xname, rxstat);
        }
+#if NRND > 0
+       rnd_add_uint32(&sc->rnd_source, status);
+#endif
        return (r);
 }
 



Home | Main Index | Thread Index | Old Index