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