identcpu.diff

dragonfly, 05/08/2006 06:22 PM

Download (1.12 KB)

View differences:

sys/i386/i386/identcpu.c 14 Apr 2006 14:08:05 -0000
529 529
		case 0x580:
530 530
			strcpy(cpu_model, "IDT WinChip 2");
531 531
			break;
532
		case 0x660:
533
			strcpy(cpu_model, "VIA C3 Samuel");
534
			break;
532 535
		case 0x670:
533
			strcpy(cpu_model, "VIA C3 Samuel 2");
536
			if (cpu_id & 0x8)
537
				strcpy(cpu_model, "VIA C3 Ezra");
538
			else
539
				strcpy(cpu_model, "VIA C3 Samuel 2");
540
			break;
541
		case 0x680:
542
			strcpy(cpu_model, "VIA C3 Ezra-T");
543
			break;
544
		case 0x690:
545
			strcpy(cpu_model, "VIA C3 Nehemiah");
546
			do_cpuid(0xc0000000, regs);
547
			if (regs[0] == 0xc0000001) {
548
				do_cpuid(0xc0000001, regs);
549
				if ((cpu_id & 0xf) >= 3)
550
					if ((regs[3] & 0x0c) == 0x0c)
551
						strcat(cpu_model, "+RNG");
552
				if ((cpu_id & 0xf) >= 8)
553
					if ((regs[3] & 0xc0) == 0xc0)
554
						strcat(cpu_model, "+ACE");
555
			}
534 556
			break;
535 557
		default:
536 558
			strcpy(cpu_model, "VIA/IDT Unknown");