mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
ShellPkg: Fix SMBIOS Type 26 probe decoding
Decode the Type 26 Voltage Probe Location and Status fields according to the SMBIOS 3.9.0 specification, section 7.27, "Voltage Probe (Type 26)". Table 95, "Voltage Probe: Location and Status fields", defines bits 4:0 as the Location field and bits 7:5 as the Status field. smbiosview was decoding these fields in the opposite order, causing the displayed voltage probe location and status to be swapped. Signed-off-by: Varshit Pandya <varshit.pandya@arm.com>
This commit is contained in:
parent
97f069bf30
commit
39d8052bc6
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
Copyright (c) 2005 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>
|
||||
Copyright (c) 2023-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
Copyright (c) 2023, Arm Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2023-2026, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
|
@ -5020,7 +5020,7 @@ DisplayVPLocation (
|
|||
{
|
||||
UINT8 Loc;
|
||||
|
||||
Loc = (UINT8)((Key & 0xE0) >> 5);
|
||||
Loc = (UINT8)(Key & 0x1F);
|
||||
ShellPrintHiiDefaultEx (STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC), gShellDebug1HiiHandle);
|
||||
PRINT_INFO_OPTION (Loc, Option);
|
||||
PRINT_TABLE_ITEM (VPLocationTable, Loc);
|
||||
|
|
@ -5040,7 +5040,7 @@ DisplayVPStatus (
|
|||
{
|
||||
UINT8 Status;
|
||||
|
||||
Status = (UINT8)(Key & 0x1F);
|
||||
Status = (UINT8)((Key & 0xE0) >> 5);
|
||||
ShellPrintHiiDefaultEx (STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS), gShellDebug1HiiHandle);
|
||||
PRINT_INFO_OPTION (Status, Option);
|
||||
PRINT_TABLE_ITEM (VPStatusTable, Status);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue