From 40004ff9d5e11441bb970dfc701e552801060b1b Mon Sep 17 00:00:00 2001 From: Abdul Lateef Attar Date: Fri, 18 Mar 2022 20:59:00 +0800 Subject: ShellPkg/AcpiView: PrintFormatter for FADT Flags field REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3839 Adds PrintFormatter function to the FADT flags field. Prints indivisual flag name along with flag value. Cc: Ray Ni Cc: Zhichao Gao Cc: Sami Mujawar Signed-off-by: Abdul Lateef Attar Reviewed-by: Zhichao Gao --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c') diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index fcc56c189d..eac9286176 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -884,7 +884,7 @@ ParseAcpiBitFields ( } // extract Bitfield data for the current item - Data = (BitsData >> Parser[Index].Offset) & ~(~0ULL << Parser[Index].Length); + Data = RShiftU64 (BitsData, Parser[Index].Offset) & ~(LShiftU64 (~0ULL, Parser[Index].Length)); if (Trace) { // if there is a Formatter function let the function handle -- cgit v1.2.3