Blob Blame History Raw
--- xen-4.10.0/tools/Makefile.orig	2017-12-13 11:37:59.000000000 +0000
+++ xen-4.10.0/tools/Makefile	2018-02-27 12:04:44.376192357 +0000
@@ -8,7 +8,7 @@
 SUBDIRS-y += libs
 SUBDIRS-y += libxc
 SUBDIRS-y += flask
-SUBDIRS-y += fuzz
+#SUBDIRS-y += fuzz
 SUBDIRS-y += xenstore
 SUBDIRS-y += misc
 SUBDIRS-y += examples
--- xen-4.10.0/tools/debugger/kdd/kdd.c.orig	2018-02-22 12:31:57.007039159 +0000
+++ xen-4.10.0/tools/debugger/kdd/kdd.c	2018-02-22 18:27:37.213653422 +0000
@@ -687,7 +687,7 @@
         }
     } else {
         /* 32-bit control-register space starts at 0x[2]cc, for 84 bytes */
-        uint32_t offset = addr;
+/*        uint32_t offset = addr;
         if (offset > 0x200)
             offset -= 0x200;
         offset -= 0xcc;
@@ -696,7 +696,9 @@
             len = 0;
         } else {
             memcpy(buf, ((uint8_t *)&ctrl.c32) + offset, len);
-        }
+        } */
+	/* disable above code due to compile issue for now */
+	len = 0;
     }
 
     s->txp.cmd.mem.addr = addr;
--- xen-4.10.0/tools/libxl/libxl_arm_acpi.c.orig	2017-12-13 11:37:59.000000000 +0000
+++ xen-4.10.0/tools/libxl/libxl_arm_acpi.c	2018-02-28 12:37:08.887221211 +0000
@@ -190,7 +190,7 @@
     struct acpi_table_rsdp *rsdp = (void *)dom->acpi_modules[0].data + offset;
 
     memcpy(rsdp->signature, "RSD PTR ", sizeof(rsdp->signature));
-    memcpy(rsdp->oem_id, ACPI_OEM_ID, sizeof(rsdp->oem_id));
+    memcpy(rsdp->oem_id, ACPI_OEM_ID, sizeof(ACPI_OEM_ID));
     rsdp->length = acpitables[RSDP].size;
     rsdp->revision = 0x02;
     rsdp->xsdt_physical_address = acpitables[XSDT].addr;
@@ -205,11 +205,11 @@
     memcpy(h->signature, sig, 4);
     h->length = len;
     h->revision = rev;
-    memcpy(h->oem_id, ACPI_OEM_ID, sizeof(h->oem_id));
-    memcpy(h->oem_table_id, ACPI_OEM_TABLE_ID, sizeof(h->oem_table_id));
+    memcpy(h->oem_id, ACPI_OEM_ID, sizeof(ACPI_OEM_ID));
+    memcpy(h->oem_table_id, ACPI_OEM_TABLE_ID, sizeof(ACPI_OEM_TABLE_ID));
     h->oem_revision = 0;
     memcpy(h->asl_compiler_id, ACPI_ASL_COMPILER_ID,
-           sizeof(h->asl_compiler_id));
+           sizeof(ACPI_ASL_COMPILER_ID));
     h->asl_compiler_revision = 0;
     h->checksum = 0;
 }
--- xen-4.10.0/tools/xenpmd/xenpmd.c.orig	2018-02-28 16:18:50.377726049 +0000
+++ xen-4.10.0/tools/xenpmd/xenpmd.c	2018-02-28 16:20:31.502426829 +0000
@@ -352,7 +352,7 @@
                             strlen(info->model_number) +
                             strlen(info->serial_number) +
                             strlen(info->battery_type) +
-                            strlen(info->oem_info) + 4));
+                            strlen(info->oem_info) + 4) & 0xff);
     write_ulong_lsb_first(val+2, info->present);
     write_ulong_lsb_first(val+10, info->design_capacity);
     write_ulong_lsb_first(val+18, info->last_full_capacity);