summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
diff options
context:
space:
mode:
authorKrzysztof Koch <krzysztof.koch@arm.com>2019-05-17 08:50:50 -0700
committerJaben Carsey <jaben.carsey@intel.com>2019-05-17 08:50:50 -0700
commit1887b995a3598795dba8704f8eb964a644f21658 (patch)
treedef0aa1e66036d28933d0f739ffcb624b9f3f7ee /ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
parent8da8daafc9055ce83804fcc65d0f4cf01b2ca6fe (diff)
downloadedk2-1887b995a3598795dba8704f8eb964a644f21658.tar.gz
edk2-1887b995a3598795dba8704f8eb964a644f21658.tar.bz2
edk2-1887b995a3598795dba8704f8eb964a644f21658.zip
ShellPkg/UefiShellAcpiViewCommandLib: Fix PPTT cache attributes validation
Removed conditional pre-compiling for ARM CPUs because function ValidateCacheAttributes(..) is based on ACPI PPTT specification. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com> Reported-by: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Bi Dandan <dandan.bi@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers')
-rw-r--r--ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
index c6588a12b4..345ad337f5 100644
--- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
+++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
@@ -80,11 +80,9 @@ ValidateCacheAttributes (
IN VOID* Context
)
{
-#if defined(MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)
// Reference: Advanced Configuration and Power Interface (ACPI) Specification
// Version 6.2 Errata A, September 2017
// Table 5-153: Cache Type Structure
-
UINT8 Attributes;
Attributes = *(UINT8*)Ptr;
@@ -96,7 +94,6 @@ ValidateCacheAttributes (
);
return;
}
-#endif
}
/**