aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2006-07-12 16:52:56 +0000
committerMichael Reifenberger <mr@FreeBSD.org>2006-07-12 16:52:56 +0000
commit9b6560e483b1f18b0337eea0b7fd02a0c47dcc37 (patch)
tree6f9ddfb21bc1e026b18f5fa5e881677d546719e0 /sys
parent4b4f91707ce02c94d5b298b9194fb074793c0733 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/identcpu.c2
-rw-r--r--sys/i386/include/specialreg.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c
index 7fb488d8e9b7..3acaf04086d5 100644
--- a/sys/i386/i386/identcpu.c
+++ b/sys/i386/i386/identcpu.c
@@ -587,7 +587,7 @@ printcpuinfo(void)
if ((cpu_id & 0xf) < 3)
break;
/* fall through. */
- case 0x6a9:
+ case 0x6a0:
strcpy(cpu_model, "VIA C7 Esther");
do_cpuid(0xc0000000, regs);
i = regs[0];
diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h
index e1b9620b717a..8111532dd569 100644
--- a/sys/i386/include/specialreg.h
+++ b/sys/i386/include/specialreg.h
@@ -409,7 +409,10 @@
#define AMD_WT_ALLOC_PRE 0x20000 /* programmable range enable */
#define AMD_WT_ALLOC_FRE 0x10000 /* fixed (A0000-FFFFF) range enable */
-/* VIA ACE crypto featureset: for via_has_xcrypt */
+/* VIA ACE crypto featureset: for via_feature_rng */
+#define VIA_HAS_RNG 1 /* cpu has RNG */
+
+/* VIA ACE crypto featureset: for via_feature_xcrypt */
#define VIA_HAS_AES 1 /* cpu has AES */
#define VIA_HAS_SHA 2 /* cpu has SHA1 & SHA256 */
#define VIA_HAS_MM 4 /* cpu has RSA instructions */