]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/UefiShellAcpiViewCommandLib: Fix PPTT cache attributes validation
authorKrzysztof Koch <krzysztof.koch@arm.com>
Fri, 17 May 2019 15:50:50 +0000 (08:50 -0700)
committerJaben Carsey <jaben.carsey@intel.com>
Fri, 17 May 2019 15:50:50 +0000 (08:50 -0700)
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>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c

index c6588a12b4639f2bf6f0953d98410befbab66e31..345ad337f5649f000cd0e42f1d38d06f4306a16a 100644 (file)
@@ -80,11 +80,9 @@ ValidateCacheAttributes (
   IN VOID*  Context\r
   )\r
 {\r
-#if defined(MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)\r
   // Reference: Advanced Configuration and Power Interface (ACPI) Specification\r
   //            Version 6.2 Errata A, September 2017\r
   // Table 5-153: Cache Type Structure\r
-\r
   UINT8 Attributes;\r
   Attributes = *(UINT8*)Ptr;\r
 \r
@@ -96,7 +94,6 @@ ValidateCacheAttributes (
       );\r
     return;\r
   }\r
-#endif\r
 }\r
 \r
 /**\r