16#if defined(IGROS_ARCH_x86_64)
38#if defined(IGROS_ARCH_x86_64)
40 using namespace igros;
static constexpr auto from(const U value) noexcept -> kFlags
From raw value (hardware register, table entry).
auto cpuEnableNoExecute() noexcept -> bool
Enable no-execute page protection (EFER.NXE) if CPU supports it.
Bit flags template datatype.
MSR registers operations.
x86_64 (long mode): GDT, IDT, TSS, CPUID, MSR, CPU registers
void writeMSR(const MSR reg, const igros_quad_t value) noexcept
Write MSR register (WRMSR takes EDX:EAX).
@ 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).
auto readMSR(const MSR reg) noexcept -> igros_quad_t
Read MSR register (RDMSR returns EDX:EAX).
@ EXTENDED_INFO
Extended feature flags (long mode, NX, 1 GB pages).
@ EFER
Extended feature enable.
auto cpuidHasLeaf(const CPUID leaf) noexcept -> bool
Check CPUID leaf is supported (basic and extended ranges are checked separately).
IgrOS kernel: common types and literals.