summaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2005-02-06 16:55:52 +0000
committerIan Dowse <iedowse@FreeBSD.org>2005-02-06 16:55:52 +0000
commit1c7178ce25235ce5dbabfc76d8921c972f3e8695 (patch)
treeca51f8f0d2ff78cdd8884ffe4f36d839a4043a91 /sys/dev/random
parentd2d72ed9bdbe25ec7a5229956ed0198e28395023 (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/random/probe.c b/sys/dev/random/probe.c
index 5cd1bddccf0f..05b822324678 100644
--- a/sys/dev/random/probe.c
+++ b/sys/dev/random/probe.c
@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$");
#if defined(__i386__) && !defined(PC98)
#include <machine/cpufunc.h>
+#include <machine/cputypes.h>
#endif
#include <dev/random/randomdev.h>
@@ -55,6 +56,8 @@ random_ident_hardware(struct random_systat *systat)
/* Then go looking for hardware */
#if defined(__i386__) && !defined(PC98)
+ if (cpu_class < CPUCLASS_586)
+ return;
do_cpuid(1, regs);
if ((regs[0] & 0xf) >= 3) {
do_cpuid(0xc0000000, regs);