diff options
author | Ashish Singhal <ashishsingha@nvidia.com> | 2020-01-20 13:44:34 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-02-11 02:12:45 +0000 |
commit | 66360134f8049cc70765cd3f119a5e2be2b67aa4 (patch) | |
tree | 7c16f26476fa0b0b9b70971db6fe9f33922e551c | |
parent | 418aded9645d8cf1d3a3bdfa3db0815d91790705 (diff) | |
download | edk2-66360134f8049cc70765cd3f119a5e2be2b67aa4.tar.gz edk2-66360134f8049cc70765cd3f119a5e2be2b67aa4.tar.bz2 edk2-66360134f8049cc70765cd3f119a5e2be2b67aa4.zip |
ShellPkg/UefiShellAcpiViewCommandLib: Fix FADT Parser
FADT parser was checking for reduced ACPI flag incorrectly
leading to incorrect error message if FIRMWARE_CTRL and
X_FIRMWARE_CTRL are both 0.
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Fadt/FadtParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Fadt/FadtParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Fadt/FadtParser.c index 5b8cc174f1..8acfbac3b1 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Fadt/FadtParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Fadt/FadtParser.c @@ -253,7 +253,7 @@ ParseAcpiFadt ( // present.
if ((Trace) &&
(Flags != NULL) &&
- ((*Flags & EFI_ACPI_6_3_HW_REDUCED_ACPI) != 0)) {
+ ((*Flags & EFI_ACPI_6_3_HW_REDUCED_ACPI) != EFI_ACPI_6_3_HW_REDUCED_ACPI)) {
IncrementErrorCount ();
Print (L"ERROR: No FACS table found, "
L"both X_FIRMWARE_CTRL and FIRMWARE_CTRL are zero.\n");
|