fix typo in identcpu.c and add one define to specialreg.h.

MFC after:	1 week
This commit is contained in:
Michael Reifenberger 2006-07-12 16:52:56 +00:00
parent 4b4f91707c
commit 9b6560e483
2 changed files with 5 additions and 2 deletions

View File

@ -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];

View File

@ -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 */