The Pedigree Project 0.1
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
LocalApicMode Class Reference
+ Collaboration diagram for LocalApicMode:

Public Types

enum class  Mode { Disabled , XApic , X2Apic , Invalid }
 

Static Public Member Functions

static constexpr Mode decode (uint64_t apicBase)
 
static constexpr uint32_t x2ApicMsr (uint32_t registerOffset)
 
static constexpr uint64_t x2ApicIcr (uint32_t legacyHigh, uint32_t low)
 

Static Public Attributes

static constexpr uint32_t BaseMsr = 0x1B
 
static constexpr uint64_t Enabled = 1ULL << 11
 
static constexpr uint64_t Extended = 1ULL << 10
 
static constexpr uint32_t X2ApicMsrBase = 0x800
 
static constexpr uint32_t X2ApicIcrMsr = 0x830
 

Detailed Description

Definition at line 6 of file LocalApicMode.h.

Member Enumeration Documentation

◆ Mode

enum class LocalApicMode::Mode
strong

Definition at line 8 of file LocalApicMode.h.

Member Function Documentation

◆ decode()

static constexpr Mode LocalApicMode::decode ( uint64_t  apicBase)
inlinestaticconstexpr

Definition at line 15 of file LocalApicMode.h.

◆ x2ApicIcr()

static constexpr uint64_t LocalApicMode::x2ApicIcr ( uint32_t  legacyHigh,
uint32_t  low 
)
inlinestaticconstexpr

Definition at line 24 of file LocalApicMode.h.

◆ x2ApicMsr()

static constexpr uint32_t LocalApicMode::x2ApicMsr ( uint32_t  registerOffset)
inlinestaticconstexpr

Definition at line 20 of file LocalApicMode.h.

Member Data Documentation

◆ BaseMsr

constexpr uint32_t LocalApicMode::BaseMsr = 0x1B
staticconstexpr

Definition at line 9 of file LocalApicMode.h.

◆ Enabled

constexpr uint64_t LocalApicMode::Enabled = 1ULL << 11
staticconstexpr

Definition at line 10 of file LocalApicMode.h.

◆ Extended

constexpr uint64_t LocalApicMode::Extended = 1ULL << 10
staticconstexpr

Definition at line 11 of file LocalApicMode.h.

◆ X2ApicIcrMsr

constexpr uint32_t LocalApicMode::X2ApicIcrMsr = 0x830
staticconstexpr

Definition at line 13 of file LocalApicMode.h.

◆ X2ApicMsrBase

constexpr uint32_t LocalApicMode::X2ApicMsrBase = 0x800
staticconstexpr

Definition at line 12 of file LocalApicMode.h.


The documentation for this class was generated from the following file: