Enable hardware RNG for VIA Nano processors.
PR: kern/163974
This commit is contained in:
parent
c1ad3fcf6a
commit
ee5f87f458
@ -215,6 +215,7 @@ dev/lindev/lindev.c optional lindev
|
||||
dev/nfe/if_nfe.c optional nfe pci
|
||||
dev/nve/if_nve.c optional nve pci
|
||||
dev/nvram/nvram.c optional nvram isa
|
||||
dev/random/nehemiah.c optional random
|
||||
dev/qlxgb/qla_dbg.c optional qlxgb pci
|
||||
dev/qlxgb/qla_hw.c optional qlxgb pci
|
||||
dev/qlxgb/qla_ioctl.c optional qlxgb pci
|
||||
|
@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/stdint.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#if defined(__i386__) && !defined(PC98)
|
||||
#if defined(__amd64__) || (defined(__i386__) && !defined(PC98))
|
||||
#include <machine/cpufunc.h>
|
||||
#include <machine/cputypes.h>
|
||||
#include <machine/md_var.h>
|
||||
@ -55,7 +55,7 @@ random_ident_hardware(struct random_systat *systat)
|
||||
*systat = random_yarrow;
|
||||
|
||||
/* Then go looking for hardware */
|
||||
#if defined(__i386__) && !defined(PC98)
|
||||
#if defined(__amd64__) || (defined(__i386__) && !defined(PC98))
|
||||
if (via_feature_rng & VIA_HAS_RNG) {
|
||||
*systat = random_nehemiah;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
KMOD= random
|
||||
SRCS= randomdev.c probe.c
|
||||
.if ${MACHINE} == "i386"
|
||||
.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
|
||||
SRCS+= nehemiah.c
|
||||
.endif
|
||||
SRCS+= randomdev_soft.c yarrow.c hash.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user