use MSR names for read_msr for readability

This commit is contained in:
Stéphane Lesimple
2026-03-30 21:01:13 +02:00
parent 3d6acc460e
commit 994608a90a
3 changed files with 11 additions and 9 deletions

View File

@@ -150,6 +150,11 @@ write_msr_one_core() {
return $ret
}
readonly MSR_IA32_PLATFORM_ID=0x17
readonly MSR_IA32_SPEC_CTRL=0x48
readonly MSR_IA32_ARCH_CAPABILITIES=0x10a
readonly MSR_IA32_TSX_CTRL=0x122
readonly MSR_IA32_MCU_OPT_CTRL=0x123
readonly READ_MSR_RET_OK=0
readonly READ_MSR_RET_KO=1
readonly READ_MSR_RET_ERR=2