88c41d
diff -Naur acpica-unix2-20171110/source/compiler/dttable2.c acpica-unix2-20171110.patched/source/compiler/dttable2.c
88c41d
--- acpica-unix2-20171110/source/compiler/dttable2.c	2017-11-27 15:20:04.705226128 -0700
88c41d
+++ acpica-unix2-20171110.patched/source/compiler/dttable2.c	2017-11-27 15:26:29.121734421 -0700
88c41d
@@ -1797,6 +1797,7 @@
88c41d
     ACPI_TABLE_TPM2         *Tpm2Header;
88c41d
     DT_SUBTABLE             *ParentTable;
88c41d
     ACPI_STATUS             Status = AE_OK;
88c41d
+    UINT32		    Tmp32;
88c41d
 
88c41d
 
88c41d
     /* Compile the main table */
88c41d
@@ -1831,7 +1832,8 @@
88c41d
 
88c41d
     /* Subtable type depends on the StartMethod */
88c41d
 
88c41d
-    switch (Tpm2Header->StartMethod)
88c41d
+    ACPI_MOVE_32_TO_32(&Tmp32, &Tpm2Header->StartMethod);
88c41d
+    switch (Tmp32)
88c41d
     {
88c41d
     case ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC:
88c41d
 
88c41d
@@ -1861,16 +1863,14 @@
88c41d
     case ACPI_TPM2_RESERVED9:
88c41d
     case ACPI_TPM2_RESERVED10:
88c41d
 
88c41d
-        AcpiOsPrintf ("\n**** Reserved TPM2 Start Method type 0x%X\n",
88c41d
-            Tpm2Header->StartMethod);
88c41d
+        AcpiOsPrintf ("\n**** Reserved TPM2 Start Method type 0x%X\n", Tmp32);
88c41d
         Status = AE_ERROR;
88c41d
         break;
88c41d
 
88c41d
     case ACPI_TPM2_NOT_ALLOWED:
88c41d
     default:
88c41d
 
88c41d
-        AcpiOsPrintf ("\n**** Unknown TPM2 Start Method type 0x%X\n",
88c41d
-            Tpm2Header->StartMethod);
88c41d
+        AcpiOsPrintf ("\n**** Unknown TPM2 Start Method type 0x%X\n", Tmp32);
88c41d
         Status = AE_ERROR;
88c41d
         break;
88c41d
     }