Skip to content

Commit

Permalink
UefiCpuPkg/Library: Cleanup debug message in LmceSupport
Browse files Browse the repository at this point in the history
ProcessorNumber 0 is not always BSP. Debug message based on 0
of ProcessorNumber is incorrect.

This patch is to clean the debug message in LmceSupport
directly.

Cc: Ray Ni <[email protected]>
Cc: Zeng Star <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Rahul Kumar <[email protected]>
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Zeng Star <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
  • Loading branch information
jiaxinwu authored and mergify[bot] committed Apr 30, 2024
1 parent 88781cc commit 0c74aa2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Machine Check features.
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
Expand Down Expand Up @@ -289,9 +289,6 @@ LmceSupport (
}

McgCap.Uint64 = AsmReadMsr64 (MSR_IA32_MCG_CAP);
if (ProcessorNumber == 0) {
DEBUG ((DEBUG_INFO, "LMCE enable = %x\n", (BOOLEAN)(McgCap.Bits.MCG_LMCE_P != 0)));
}

return (BOOLEAN)(McgCap.Bits.MCG_LMCE_P != 0);
}
Expand Down

0 comments on commit 0c74aa2

Please sign in to comment.