[ros-dev] [ros-diffs] [ros-arm-bringup] 44856: NMI Support Patch 5: [HAL]: Do correct TLB flushing for systems with global page support. [HAL]: Clean leading whitespace and comments.
Alex Ionescu
ionucu at videotron.ca
Fri Jan 1 18:31:11 CET 2010
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 at 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
More information about the Ros-dev
mailing list