# HG changeset patch # User pontscho # Date 1003496491 0 # Node ID b318387bfeda5cfb110926146e2222ba5e4d16b5 # Parent 9b9c3363abbee534a7657a63c4448501f12d05e8 amd fix diff -r 9b9c3363abbe -r b318387bfeda cpudetect.c --- a/cpudetect.c Fri Oct 19 12:30:01 2001 +0000 +++ b/cpudetect.c Fri Oct 19 13:01:31 2001 +0000 @@ -91,7 +91,8 @@ return;*/ do_cpuid(0x00000000, regs); printf("CPU vendor name: %.4s%.4s%.4s\n",®s[1],®s[3],®s[2]); - if (regs[0]>0x00000001) { +// if (regs[0]>0x00000001) + { do_cpuid(0x00000001, regs2); printf("CPU family: %d\n",(regs2[0] >> 8)&0xf); switch ((regs2[0] >> 8)&0xf) { @@ -105,7 +106,7 @@ caps->cpuType=CPUTYPE_I586; break; case 6: - caps->cpuType=CPUTYPE_I586; + caps->cpuType=CPUTYPE_I686; break; default: printf("Unknown cpu type, default to i386\n"); @@ -292,4 +293,4 @@ gCpuCaps.hasSSE=0; #endif /* __linux__ */ } -#endif /* ARCH_X86 */ \ No newline at end of file +#endif /* ARCH_X86 */ diff -r 9b9c3363abbe -r b318387bfeda cpudetect.h --- a/cpudetect.h Fri Oct 19 12:30:01 2001 +0000 +++ b/cpudetect.h Fri Oct 19 13:01:31 2001 +0000 @@ -3,6 +3,7 @@ #define CPUTYPE_I386 0 #define CPUTYPE_I486 1 #define CPUTYPE_I586 2 +#define CPUTYPE_I686 3 typedef struct cpucaps_s { int cpuType;