diff options
author | Abdul Lateef Attar <abdattar@amd.com> | 2022-03-18 20:59:00 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-03-28 09:38:30 +0000 |
commit | 40004ff9d5e11441bb970dfc701e552801060b1b (patch) | |
tree | fd2ec70be77b36f6f5ee263b264ea1e53950b971 /ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | |
parent | 691b1786670d17f7dc5ad717925210f1f62ddd8a (diff) | |
download | edk2-40004ff9d5e11441bb970dfc701e552801060b1b.tar.gz edk2-40004ff9d5e11441bb970dfc701e552801060b1b.tar.bz2 edk2-40004ff9d5e11441bb970dfc701e552801060b1b.zip |
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 <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Abdul Lateef Attar <abdattar@amd.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
|