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