{
volatilePLONGCount = (PLONG)Context;
ULONG Cr4, Cr3;
/* Disable interrupts */_disable();
/* Decrease CPU Count and loop until it's reached 0 */do {InterlockedDecrement(Count);} while (!*Count);
/* Now check if this is the Boot CPU */if (!KeGetPcr()->Number)
{
/* It is.FIXME: Patch KeFlushCurrentTb */
}
/* Now get CR4 and make sure PGE is masked out */
Cr4 = __readcr4();
__writecr4(Cr4 & ~CR4_PGE);
/* Flush the TLB */
Cr3 = __readcr3();
__writecr3(Cr3);
/* Now enable PGE */DPRINT("Global page support detected but not yet taken advantage of\n");
//__writecr4(Cr4 | CR4_PGE);/* Restore interrupts */_enable();
return 0;
}
Generated on Sun May 27 2012 06:07:54 for ReactOS by
1.7.6.1
ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.