|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
CPUID detection. More...
#include <arch/types.hpp>

Go to the source code of this file.
Classes | |
| struct | igros::x86_64::cpuidRegs_t |
| CPUID result registers. More... | |
Namespaces | |
| namespace | igros |
| IgrOS kernel: common types and literals. | |
| namespace | igros::x86_64 |
| x86_64 (long mode): GDT, IDT, TSS, CPUID, MSR, CPU registers | |
Enumerations | |
| enum class | igros::x86_64::CPUID : igros_dword_t { igros::x86_64::VENDOR = 0x00000000_u32 , igros::x86_64::FEATURES = 0x00000001_u32 , igros::x86_64::CACHE_TLB = 0x00000002_u32 , igros::x86_64::EXTENDED_FEATURES = 0x00000007_u32 , igros::x86_64::EXTENDED_MAX = 0x80000000_u32 , igros::x86_64::EXTENDED_INFO = 0x80000001_u32 , igros::x86_64::ADDRESS_SIZES = 0x80000008_u32 } |
| CPUID leaves. More... | |
| enum class | igros::x86_64::CPUID_EXT_EDX : igros_dword_t { igros::x86_64::NX = 0x00100000_u32 , igros::x86_64::PAGE_1GB = 0x04000000_u32 , igros::x86_64::LONG_MODE = 0x20000000_u32 } |
| CPUID extended feature flags (leaf 80000001h, EDX). More... | |
Functions | |
| auto | igros::x86_64::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 | igros::x86_64::cpuidHasLeaf (const CPUID leaf) noexcept -> bool |
| Check CPUID leaf is supported (basic and extended ranges are checked separately). | |
CPUID detection.
Definition in file cpuid.hpp.