Author: dgorbachev
Date: Thu Sep 22 06:08:35 2011
New Revision: 53799
URL:
http://svn.reactos.org/svn/reactos?rev=53799&view=rev
Log:
[NTOSKRNL]
Do not fail with unknown CPUs. Bug #6493.
Modified:
trunk/reactos/ntoskrnl/ke/i386/cpu.c
Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Thu Sep 22 06:08:35 2011
@@ -247,8 +247,9 @@
return CPU_RISE;
}
- /* Invalid CPU */
- return 0;
+ /* Unknown CPU */
+ DPRINT1("%s CPU support not fully tested!\n", Prcb->VendorString);
+ return CPU_UNKNOWN;
}
ULONG
@@ -311,9 +312,6 @@
Reg[3] &= ~0x800;
}
- /* Set the current features */
- CpuFeatures = Reg[3];
-
break;
/* AMD CPUs */
@@ -363,9 +361,6 @@
ExtendedCPUID = FALSE;
}
- /* Set the current features */
- CpuFeatures = Reg[3];
-
break;
/* Cyrix CPUs */
@@ -385,9 +380,6 @@
setCx86(CX86_CCR1, Ccr1);
}
- /* Set the current features */
- CpuFeatures = Reg[3];
-
break;
/* Transmeta CPUs */
@@ -412,6 +404,9 @@
break;
}
+
+ /* Set the current features */
+ CpuFeatures = Reg[3];
/* Convert all CPUID Feature bits into our format */
if (CpuFeatures & 0x00000002) FeatureBits |= KF_V86_VIS | KF_CR4;