]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
ShellPkg: Display VENDOR_ID in ASCII when parsing PPTT
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Pptt / PpttParser.c
index bc56fe9ea1dd9c1e98a6a568d3f9191263bedc90..71b6e7ae7c727ee0ea12f74e60c27c4c46e05872 100644 (file)
@@ -2,13 +2,7 @@
   PPTT table parser\r
 \r
   Copyright (c) 2019, ARM Limited. All rights reserved.\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Reference(s):\r
     - ACPI 6.2 Specification - Errata A, September 2017\r
@@ -86,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
@@ -102,7 +94,6 @@ ValidateCacheAttributes (
       );\r
     return;\r
   }\r
-#endif\r
 }\r
 \r
 /**\r
@@ -156,7 +147,7 @@ STATIC CONST ACPI_PARSER IdStructureParser[] = {
   {L"Length", 1, 1, L"%d", NULL, NULL, NULL, NULL},\r
   {L"Reserved", 2, 2, L"0x%x", NULL, NULL, NULL, NULL},\r
 \r
-  {L"VENDOR_ID", 4, 4, L"0x%x", NULL, NULL, NULL, NULL},\r
+  {L"VENDOR_ID", 4, 4, NULL, Dump4Chars, NULL, NULL, NULL},\r
   {L"LEVEL_1_ID", 8, 8, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"LEVEL_2_ID", 8, 16, L"0x%x", NULL, NULL, NULL, NULL},\r
   {L"MAJOR_REV", 2, 24, L"0x%x", NULL, NULL, NULL, NULL},\r