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

This commit is contained in:
heas 2006-01-02 05:46:25 +00:00
parent 95b350ea52
commit b6a4c18d48
1 changed files with 5 additions and 2 deletions

View File

@ -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 @@ gem_intr(v)
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);
}