Why don't you cache this instead of querying it for each TLB flush? Seems stupidly wasteful -- I thought the point was to "make it better"??
Isn't this what HalpGetFeatureBits is for?
On 2010-01-01, at 11:37 AM, ros-arm-bringup(a)svn.reactos.org wrote:
> + //
> + // Check for CPUID support
> + //
> + if (KeGetCurrentPrcb()->CpuID)
> + {
> + //
> + // Check for global bit in CPU features
> + //
> + __cpuid(CpuInfo, 1);
> + if (CpuInfo[3] & 0x2000)
> + {
Best regards,
Alex Ionescu