Skip to content

Commit

Permalink
OcDeviceMiscLib: Add MSR prefix to IA32_MISC_ENABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
PMheart committed Jun 21, 2021
1 parent 18e9707 commit 321c6c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Library/OcCpuLib/OcCpuLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ OcCpuGetMsrReport (
}
} else if (CpuInfo->CpuGeneration >= OcCpuGenerationPrePenryn) {
//
// IA32_MISC_ENABLE
// MSR_IA32_MISC_ENABLE
//
Report->CpuHasMsrIa32MiscEnable = TRUE;
Report->CpuMsrIa32MiscEnableValue = AsmReadMsr64 (MSR_IA32_MISC_ENABLES);
Expand Down
4 changes: 2 additions & 2 deletions Library/OcDeviceMiscLib/CpuInfoDump.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ OcCpuInfoDump (
}

//
// IA32_MISC_ENABLE
// MSR_IA32_MISC_ENABLE
//
if (Reports[Index].CpuHasMsrIa32MiscEnable) {
OcAsciiPrintBuffer (&FileBuffer, &FileBufferSize, "IA32_MISC_ENABLE: 0x%llX\n", Reports[Index].CpuMsrIa32MiscEnableValue);
OcAsciiPrintBuffer (&FileBuffer, &FileBufferSize, "MSR_IA32_MISC_ENABLE: 0x%llX\n", Reports[Index].CpuMsrIa32MiscEnableValue);
}
//
// MSR_IA32_EXT_CONFIG
Expand Down

0 comments on commit 321c6c4

Please sign in to comment.