mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:03:00 +00:00
[NTOS/KE]
- Remove VirtualBox SYSENTER-hack added in r50991. - Bring back NT-compatible SYSENTER support detection changed in r50991. svn path=/trunk/; revision=51120
This commit is contained in:
parent
4fb00286d5
commit
cc6c8e90e2
1 changed files with 3 additions and 10 deletions
|
@ -304,16 +304,9 @@ KiGetFeatureBits(VOID)
|
||||||
FeatureBits &= ~KF_WORKING_PTE;
|
FeatureBits &= ~KF_WORKING_PTE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Virtualbox claims to have no SYSENTER support,
|
/* Check if the CPU is too old to support SYSENTER */
|
||||||
* which is false for processors >= Pentium Pro */
|
if ((Prcb->CpuType < 6) ||
|
||||||
if(Prcb->CpuType >= 6)
|
((Prcb->CpuType == 6) && (Prcb->CpuStep < 0x0303)))
|
||||||
{
|
|
||||||
Reg[3] |= 0x800;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check if the CPU is too old to support SYSENTER,
|
|
||||||
* See Intel CPUID instruction manual for details*/
|
|
||||||
if ((Reg[0] & 0x0FFF3FFF) < 0x00000633)
|
|
||||||
{
|
{
|
||||||
/* Disable it */
|
/* Disable it */
|
||||||
Reg[3] &= ~0x800;
|
Reg[3] &= ~0x800;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue