Expand description
Model-Specific Register (MSR) read/write primitives.
Extracted from apic.rs so that other modules (e.g. pat.rs) can
access MSRs without duplicating inline assembly.
Functions§
- phys_
to_ virt - Translate a physical address to its virtual address using the bootloader’s physical memory mapping.
- rdmsr
- Read a 64-bit Model-Specific Register.
- wrmsr
- Write a 64-bit value to a Model-Specific Register.