public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] ShellPkg/UefiShellAcpiViewCommandLib: Fix FADT Parser
@ 2020-01-20  5:44 Ashish Singhal
  2020-01-20  7:42 ` [edk2-devel] " Gao, Zhichao
  0 siblings, 1 reply; 7+ messages in thread
From: Ashish Singhal @ 2020-01-20  5:44 UTC (permalink / raw)
  To: devel, ray.ni, zhichao.gao; +Cc: Ashish Singhal

FADT parser was checking for reduced ACPI flag incorrectly
leading to incorrect error message if FIRMWARE_CTRL and
X_FIRMWARE_CTRL are both 0.

Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
---
 .../UefiShellAcpiViewCommandLib/Parsers/Fadt/FadtParser.c       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-02-11  5:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-20  5:44 [PATCH] ShellPkg/UefiShellAcpiViewCommandLib: Fix FADT Parser Ashish Singhal
2020-01-20  7:42 ` [edk2-devel] " Gao, Zhichao
2020-01-27 17:28   ` Ashish Singhal
2020-01-31  5:32     ` Gao, Zhichao
2020-02-10 17:39       ` Ashish Singhal
2020-02-11  2:54         ` Gao, Zhichao
2020-02-11  5:22           ` Ashish Singhal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox