[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix xen build on NetBSD.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1180515549 -3600 # Node ID 33242afccb3261b438e51cd1ce73381e4595acfa # Parent f0772865c85aee00293b61e99e510eaafb542a84 Fix xen build on NetBSD. From: Christoph Egger <Christoph.Egger@xxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- config/NetBSD.mk | 1 + xen/arch/x86/shutdown.c | 2 +- xen/tools/symbols.c | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff -r f0772865c85a -r 33242afccb32 config/NetBSD.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/NetBSD.mk Wed May 30 09:59:09 2007 +0100 @@ -0,0 +1,1 @@ +include $(XEN_ROOT)/config/StdGNU.mk diff -r f0772865c85a -r 33242afccb32 xen/arch/x86/shutdown.c --- a/xen/arch/x86/shutdown.c Wed May 30 09:51:38 2007 +0100 +++ b/xen/arch/x86/shutdown.c Wed May 30 09:59:09 2007 +0100 @@ -197,7 +197,7 @@ static void machine_real_restart(const u #endif -void machine_restart(char * __unused) +void machine_restart(char *cmd) { int i; diff -r f0772865c85a -r 33242afccb32 xen/tools/symbols.c --- a/xen/tools/symbols.c Wed May 30 09:51:38 2007 +0100 +++ b/xen/tools/symbols.c Wed May 30 09:59:09 2007 +0100 @@ -29,6 +29,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <stdint.h> #include <ctype.h> #define KSYM_NAME_LEN 127 @@ -103,7 +104,7 @@ static int read_symbol(FILE *in, struct _sextratext = s->addr; else if (strcmp(sym, "_eextratext") == 0) _eextratext = s->addr; - else if (toupper(stype) == 'A') + else if (toupper((uint8_t)stype) == 'A') { /* Keep these useful absolute symbols */ if (strcmp(sym, "__kernel_syscall_via_break") && @@ -113,7 +114,7 @@ static int read_symbol(FILE *in, struct return -1; } - else if (toupper(stype) == 'U' || + else if (toupper((uint8_t)stype) == 'U' || is_arm_mapping_symbol(sym)) return -1; /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |