direct-io.hg

changeset 15177:33242afccb32

Fix xen build on NetBSD.
From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed May 30 09:59:09 2007 +0100 (2007-05-30)
parents f0772865c85a
children 1bad5a932df5
files config/NetBSD.mk xen/arch/x86/shutdown.c xen/tools/symbols.c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/NetBSD.mk	Wed May 30 09:59:09 2007 +0100
     1.3 @@ -0,0 +1,1 @@
     1.4 +include $(XEN_ROOT)/config/StdGNU.mk
     2.1 --- a/xen/arch/x86/shutdown.c	Wed May 30 09:51:38 2007 +0100
     2.2 +++ b/xen/arch/x86/shutdown.c	Wed May 30 09:59:09 2007 +0100
     2.3 @@ -197,7 +197,7 @@ static void machine_real_restart(const u
     2.4  
     2.5  #endif
     2.6  
     2.7 -void machine_restart(char * __unused)
     2.8 +void machine_restart(char *cmd)
     2.9  {
    2.10      int i;
    2.11  
     3.1 --- a/xen/tools/symbols.c	Wed May 30 09:51:38 2007 +0100
     3.2 +++ b/xen/tools/symbols.c	Wed May 30 09:59:09 2007 +0100
     3.3 @@ -29,6 +29,7 @@
     3.4  #include <stdio.h>
     3.5  #include <stdlib.h>
     3.6  #include <string.h>
     3.7 +#include <stdint.h>
     3.8  #include <ctype.h>
     3.9  
    3.10  #define KSYM_NAME_LEN		127
    3.11 @@ -103,7 +104,7 @@ static int read_symbol(FILE *in, struct 
    3.12  		_sextratext = s->addr;
    3.13  	else if (strcmp(sym, "_eextratext") == 0)
    3.14  		_eextratext = s->addr;
    3.15 -	else if (toupper(stype) == 'A')
    3.16 +	else if (toupper((uint8_t)stype) == 'A')
    3.17  	{
    3.18  		/* Keep these useful absolute symbols */
    3.19  		if (strcmp(sym, "__kernel_syscall_via_break") &&
    3.20 @@ -113,7 +114,7 @@ static int read_symbol(FILE *in, struct 
    3.21  			return -1;
    3.22  
    3.23  	}
    3.24 -	else if (toupper(stype) == 'U' ||
    3.25 +	else if (toupper((uint8_t)stype) == 'U' ||
    3.26  		 is_arm_mapping_symbol(sym))
    3.27  		return -1;
    3.28  	/* exclude also MIPS ELF local symbols ($L123 instead of .L123) */