IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
msr.hpp File Reference

MSR registers operations. More...

#include <arch/types.hpp>
Include dependency graph for msr.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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::MSR : igros_dword_t {
  igros::x86_64::APIC_BASE = 0x0000001B_u32 , igros::x86_64::EFER = 0xC0000080_u32 , igros::x86_64::STAR = 0xC0000081_u32 , igros::x86_64::LSTAR = 0xC0000082_u32 ,
  igros::x86_64::FMASK = 0xC0000084_u32 , igros::x86_64::FS_BASE = 0xC0000100_u32 , igros::x86_64::GS_BASE = 0xC0000101_u32 , igros::x86_64::KERNEL_GS_BASE = 0xC0000102_u32
}
 Model specific registers. More...
enum class  igros::x86_64::EFER : igros_quad_t { igros::x86_64::SCE = 0x0000000000000001_u64 , igros::x86_64::LME = 0x0000000000000100_u64 , igros::x86_64::LMA = 0x0000000000000400_u64 , igros::x86_64::NXE = 0x0000000000000800_u64 }
 EFER register bits. More...

Functions

auto igros::x86_64::readMSR (const MSR reg) noexcept -> igros_quad_t
 Read MSR register (RDMSR returns EDX:EAX).
void igros::x86_64::writeMSR (const MSR reg, const igros_quad_t value) noexcept
 Write MSR register (WRMSR takes EDX:EAX).

Detailed Description

MSR registers operations.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file msr.hpp.