|
ReactOS 0.4.17-dev-1133-gc25e4fd
|

Go to the source code of this file.
Classes | |
| struct | INTEL_CACHE_DESCRIPTOR |
Macros | |
| #define | NDEBUG |
Functions | |
| C_ASSERT (sizeof(INTEL_CACHE_DESCRIPTOR)==6) | |
| static const INTEL_CACHE_DESCRIPTOR * | FindIntelCacheDescriptor (_In_ UCHAR DescriptorCode) |
| Finds the cache descriptor for the given descriptor value. | |
| static ULONG | GetCacheInfoIntelLeaf2 (_Out_cap_(MaxCount) PCACHE_DESCRIPTOR CacheDescriptors, _In_ ULONG MaxCount) |
| Retrieves cache information using CPUID leaf 2 for Intel processors. | |
| static ULONG | GetCacheInfoAmdLegacy (_Out_cap_(MaxCount) PCACHE_DESCRIPTOR CacheDescriptors, _In_ ULONG MaxCount) |
| Retrieves cache information for legacy AMD processors. | |
| static ULONG | KiGetCacheInfoModern (_Out_cap_(MaxCount) PCACHE_DESCRIPTOR CacheDescriptors, _In_ ULONG MaxCount, _In_ ULONG CpuIdLeaf) |
| Retrieves cache information for modern Intel/AMD processors. | |
| static ULONG | NormalizeCacheDescriptors (_Inout_updates_(MaxCount) PCACHE_DESCRIPTOR CacheDescriptors, _In_ ULONG CacheCount, _In_ ULONG MaxCount) |
| Normalizes the cache descriptors by removing duplicates and sorting them. | |
| ULONG NTAPI | KiGetCpuCacheDescriptors (_Out_writes_(MaxCount) PCACHE_DESCRIPTOR CacheDescriptors, _In_ ULONG MaxCount, _In_ CPU_VENDORS Vendor) |
| Retrieves cache descriptors for the current CPU. | |
Variables | |
| static const INTEL_CACHE_DESCRIPTOR | IntelCacheDescriptors [] |
| Table of known Intel cache descriptors, as defined in the Intel SDM. | |
| #define NDEBUG |
Definition at line 12 of file cacheinfo.c.
| C_ASSERT | ( | sizeof(INTEL_CACHE_DESCRIPTOR) | = =6 | ) |
|
static |
Finds the cache descriptor for the given descriptor value.
| [in] | DescriptorCode | - The cache descriptor code to find |
Definition at line 168 of file cacheinfo.c.
Referenced by GetCacheInfoIntelLeaf2().
|
static |
Retrieves cache information for legacy AMD processors.
| [out] | CacheDescriptors | - An array to receive cache descriptors |
| [in] | MaxCount | - The maximum number of cache descriptors to fill |
Definition at line 281 of file cacheinfo.c.
Referenced by KiGetCpuCacheDescriptors().
|
static |
Retrieves cache information using CPUID leaf 2 for Intel processors.
| [out] | CacheDescriptors | - An array to receive the cache descriptors |
| [in] | MaxCount | - The maximum number of cache descriptors to fill |
\See "Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 1: Basic Architecture"
Definition at line 207 of file cacheinfo.c.
Referenced by KiGetCpuCacheDescriptors().
|
static |
Retrieves cache information for modern Intel/AMD processors.
| [out] | CacheDescriptors | - An array to receive cache descriptors |
| [in] | MaxCount | - The maximum number of cache descriptors to fill |
| [in] | CpuIdLeaf | - The CPUID leaf to use (0x04 for Intel, 0x8000001D for AMD) |
Definition at line 355 of file cacheinfo.c.
Referenced by KiGetCpuCacheDescriptors().
| ULONG NTAPI KiGetCpuCacheDescriptors | ( | _Out_writes_(MaxCount) PCACHE_DESCRIPTOR | CacheDescriptors, |
| _In_ ULONG | MaxCount, | ||
| _In_ CPU_VENDORS | Vendor | ||
| ) |
Retrieves cache descriptors for the current CPU.
| [out] | CacheDescriptors | - An array to receive the cache descriptors |
| [in] | MaxCount | - The maximum number of cache descriptors to fill |
| [in] | Vendor | - The CPU vendor |
Definition at line 484 of file cacheinfo.c.
Referenced by KiGetCacheInformation().
|
static |
Normalizes the cache descriptors by removing duplicates and sorting them.
| [in,out] | CacheDescriptors | - An array of cache descriptors |
| [in] | CacheCount | - The number of cache descriptors |
| [in] | MaxCount | - The maximum number of cache descriptors to fill |
Definition at line 425 of file cacheinfo.c.
Referenced by KiGetCpuCacheDescriptors().
|
static |
Table of known Intel cache descriptors, as defined in the Intel SDM.
Only data, instruction and unified caches are listed, TLBs and trace caches are ignored.
Definition at line 39 of file cacheinfo.c.
Referenced by FindIntelCacheDescriptor().