60 :
"=a"(regs.eax),
"=b"(regs.ebx),
"=c"(regs.ecx),
"=d"(regs.edx)
72 const auto base {value & 0x80000000_u32};
73 return cpuid(
static_cast<CPUID>(base)).eax >= value;
std::uint32_t igros_dword_t
32-bit unsigned integer
x86_64 (long mode): GDT, IDT, TSS, CPUID, MSR, CPU registers
CPUID_EXT_EDX
CPUID extended feature flags (leaf 80000001h, EDX).
@ LONG_MODE
Long mode (64-bit).
@ NX
No-execute page protection.
auto cpuid(const CPUID leaf, const igros_dword_t subleaf=0_u32) noexcept -> cpuidRegs_t
Execute CPUID (CPUID is always available in long mode; caller checks leaf is supported).
@ EXTENDED_INFO
Extended feature flags (long mode, NX, 1 GB pages).
@ EXTENDED_FEATURES
Structured extended features (subleaf 0).
@ ADDRESS_SIZES
Physical and linear address sizes.
@ VENDOR
Max basic leaf and vendor string.
@ EXTENDED_MAX
Max extended leaf.
@ FEATURES
Version and feature flags.
@ CACHE_TLB
Cache and TLB descriptors.
auto cpuidHasLeaf(const CPUID leaf) noexcept -> bool
Check CPUID leaf is supported (basic and extended ranges are checked separately).
igros_dword_t edx
EDX register value.
igros_dword_t ebx
EBX register value.
igros_dword_t ecx
ECX register value.
igros_dword_t eax
EAX register value.
Common C++ types redefinition.