mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[NTOSKRNL]
Do not fail with unknown CPUs. Bug #6493. svn path=/trunk/; revision=53799
This commit is contained in:
@@ -247,8 +247,9 @@ KiGetCpuVendor(VOID)
|
||||
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 @@ KiGetFeatureBits(VOID)
|
||||
Reg[3] &= ~0x800;
|
||||
}
|
||||
|
||||
/* Set the current features */
|
||||
CpuFeatures = Reg[3];
|
||||
|
||||
break;
|
||||
|
||||
/* AMD CPUs */
|
||||
@@ -363,9 +361,6 @@ KiGetFeatureBits(VOID)
|
||||
ExtendedCPUID = FALSE;
|
||||
}
|
||||
|
||||
/* Set the current features */
|
||||
CpuFeatures = Reg[3];
|
||||
|
||||
break;
|
||||
|
||||
/* Cyrix CPUs */
|
||||
@@ -385,9 +380,6 @@ KiGetFeatureBits(VOID)
|
||||
setCx86(CX86_CCR1, Ccr1);
|
||||
}
|
||||
|
||||
/* Set the current features */
|
||||
CpuFeatures = Reg[3];
|
||||
|
||||
break;
|
||||
|
||||
/* Transmeta CPUs */
|
||||
@@ -413,6 +405,9 @@ KiGetFeatureBits(VOID)
|
||||
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;
|
||||
if (CpuFeatures & 0x00000008) FeatureBits |= KF_LARGE_PAGE | KF_CR4;
|
||||
|
||||
Reference in New Issue
Block a user