]> 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 c6588a12b4639f2bf6f0953d98410befbab66e31..71b6e7ae7c727ee0ea12f74e60c27c4c46e05872 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
@@ -150,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