|
|
a78f618 |
--- xen-4.8.0/xen/include/asm-x86/x86_64/uaccess.h.orig 2016-12-05 12:03:27.000000000 +0000
|
|
|
a78f618 |
+++ xen-4.8.0/xen/include/asm-x86/x86_64/uaccess.h 2017-02-11 22:55:19.112487384 +0000
|
|
|
a78f618 |
@@ -46,7 +46,7 @@
|
|
|
a78f618 |
((unsigned long)(addr) < HYPERVISOR_COMPAT_VIRT_START(d))
|
|
|
a78f618 |
|
|
|
a78f618 |
#define __compat_access_ok(d, addr, size) \
|
|
|
a78f618 |
- __compat_addr_ok(d, (unsigned long)(addr) + ((size) ? (size) - 1 : 0))
|
|
|
a78f618 |
+ __compat_addr_ok(d, (unsigned long)(addr) + ((size)>0 ? (size) - 1 : 0))
|
|
|
a78f618 |
|
|
|
a78f618 |
#define compat_access_ok(addr, size) \
|
|
|
a78f618 |
__compat_access_ok(current->domain, addr, size)
|
|
|
a78f618 |
--- xen-4.8.0/xen/arch/arm/platforms/brcm.c.orig 2016-12-05 12:03:27.000000000 +0000
|
|
|
a78f618 |
+++ xen-4.8.0/xen/arch/arm/platforms/brcm.c 2017-02-11 23:05:35.521865198 +0000
|
|
|
a78f618 |
@@ -271,7 +271,7 @@
|
|
|
a78f618 |
return brcm_populate_plat_regs();
|
|
|
a78f618 |
}
|
|
|
a78f618 |
|
|
|
a78f618 |
-static const char const *brcm_dt_compat[] __initconst =
|
|
|
a78f618 |
+static const char *brcm_dt_compat[] __initconst =
|
|
|
a78f618 |
{
|
|
|
a78f618 |
"brcm,bcm7445d0",
|
|
|
a78f618 |
NULL
|
|
|
a78f618 |
--- xen-4.8.0/xen/arch/arm/platforms/rcar2.c.orig 2016-12-05 12:03:27.000000000 +0000
|
|
|
a78f618 |
+++ xen-4.8.0/xen/arch/arm/platforms/rcar2.c 2017-02-12 15:59:23.574607734 +0000
|
|
|
a78f618 |
@@ -46,7 +46,7 @@
|
|
|
a78f618 |
return 0;
|
|
|
a78f618 |
}
|
|
|
a78f618 |
|
|
|
a78f618 |
-static const char const *rcar2_dt_compat[] __initdata =
|
|
|
a78f618 |
+static const char *rcar2_dt_compat[] __initdata =
|
|
|
a78f618 |
{
|
|
|
a78f618 |
"renesas,lager",
|
|
|
a78f618 |
NULL
|
|
|
a78f618 |
--- xen-4.8.0/tools/misc/xenlockprof.c.orig 2016-12-05 12:03:27.000000000 +0000
|
|
|
a78f618 |
+++ xen-4.8.0/tools/misc/xenlockprof.c 2017-02-12 15:53:26.585588293 +0000
|
|
|
a78f618 |
@@ -24,7 +24,7 @@
|
|
|
a78f618 |
uint32_t i, j, n;
|
|
|
a78f618 |
uint64_t time;
|
|
|
a78f618 |
double l, b, sl, sb;
|
|
|
a78f618 |
- char name[60];
|
|
|
a78f618 |
+ char name[90];
|
|
|
a78f618 |
DECLARE_HYPERCALL_BUFFER(xc_lockprof_data_t, data);
|
|
|
a78f618 |
|
|
|
a78f618 |
if ( (argc > 2) || ((argc == 2) && (strcmp(argv[1], "-r") != 0)) )
|
|
|
a78f618 |
--- xen-4.8.0/tools/xenpmd/xenpmd.c.orig 2016-12-05 12:03:27.000000000 +0000
|
|
|
a78f618 |
+++ xen-4.8.0/tools/xenpmd/xenpmd.c 2017-02-12 16:24:40.617934526 +0000
|
|
|
a78f618 |
@@ -87,12 +87,12 @@
|
|
|
a78f618 |
|
|
|
a78f618 |
#ifdef RUN_IN_SIMULATE_MODE
|
|
|
a78f618 |
#define BATTERY_DIR_PATH "/tmp/battery"
|
|
|
a78f618 |
- #define BATTERY_INFO_FILE_PATH "/tmp/battery/%s/info"
|
|
|
a78f618 |
- #define BATTERY_STATE_FILE_PATH "/tmp/battery/%s/state"
|
|
|
a78f618 |
+ #define BATTERY_INFO_FILE_PATH "/tmp/battery/%.13s/info"
|
|
|
a78f618 |
+ #define BATTERY_STATE_FILE_PATH "/tmp/battery/%.12s/state"
|
|
|
a78f618 |
#else
|
|
|
a78f618 |
#define BATTERY_DIR_PATH "/proc/acpi/battery"
|
|
|
a78f618 |
- #define BATTERY_INFO_FILE_PATH "/proc/acpi/battery/%s/info"
|
|
|
a78f618 |
- #define BATTERY_STATE_FILE_PATH "/proc/acpi/battery/%s/state"
|
|
|
a78f618 |
+ #define BATTERY_INFO_FILE_PATH "/proc/acpi/battery/%.7s/info"
|
|
|
a78f618 |
+ #define BATTERY_STATE_FILE_PATH "/proc/acpi/battery/%.6s/state"
|
|
|
a78f618 |
#endif
|
|
|
a78f618 |
|
|
|
a78f618 |
FILE *get_next_battery_file(DIR *battery_dir,
|
|
|
a78f618 |
--- xen-4.8.0/tools/ocaml/libs/xc/xenctrl_stubs.c.orig 2016-12-05 12:03:27.000000000 +0000
|
|
|
a78f618 |
+++ xen-4.8.0/tools/ocaml/libs/xc/xenctrl_stubs.c 2017-02-12 17:04:37.165498277 +0000
|
|
|
a78f618 |
@@ -62,7 +62,7 @@
|
|
|
a78f618 |
"%d: %s", errno, strerror(errno));
|
|
|
a78f618 |
else
|
|
|
a78f618 |
snprintf(error_str, sizeof(error_str),
|
|
|
a78f618 |
- "%d: %s: %s", error->code,
|
|
|
a78f618 |
+ "%d: %s: %.200s", error->code,
|
|
|
a78f618 |
xc_error_code_to_desc(error->code),
|
|
|
a78f618 |
error->message);
|
|
|
a78f618 |
} else {
|
|
|
a78f618 |
--- xen-4.8.0/extras/mini-os/Makefile.orig 2016-09-28 12:09:38.000000000 +0100
|
|
|
a78f618 |
+++ xen-4.8.0/extras/mini-os/Makefile 2017-02-15 21:15:19.340197960 +0000
|
|
|
a78f618 |
@@ -142,6 +142,9 @@
|
|
|
a78f618 |
APP_LDLIBS += -lz
|
|
|
a78f618 |
APP_LDLIBS += -lm
|
|
|
a78f618 |
LDLIBS += -lc
|
|
|
a78f618 |
+ifeq ($(MINIOS_TARGET_ARCH),x86_32)
|
|
|
a78f618 |
+LDLIBS += -L$(shell dirname `gcc -m32 -print-libgcc-file-name`) -lgcc
|
|
|
a78f618 |
+endif
|
|
|
a78f618 |
endif
|
|
|
a78f618 |
|
|
|
a78f618 |
ifneq ($(APP_OBJS)-$(lwip),-y)
|