direct-io.hg

changeset 7353:29db5bded574

Fix 64-bit compile warnings in firmware.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Oct 12 16:15:02 2005 +0100 (2005-10-12)
parents f3aa156fda6a
children 52b9aca1916a
files tools/firmware/vmxassist/gen.c
line diff
     1.1 --- a/tools/firmware/vmxassist/gen.c	Wed Oct 12 13:21:06 2005 +0100
     1.2 +++ b/tools/firmware/vmxassist/gen.c	Wed Oct 12 16:15:02 2005 +0100
     1.3 @@ -27,26 +27,26 @@ main(void)
     1.4  {
     1.5  	printf("/* MACHINE GENERATED; DO NOT EDIT */\n");
     1.6  	printf("#define VMX_ASSIST_CTX_GS_SEL	0x%x\n",
     1.7 -		offsetof(struct vmx_assist_context, gs_sel));
     1.8 +		(unsigned int)offsetof(struct vmx_assist_context, gs_sel));
     1.9  	printf("#define VMX_ASSIST_CTX_FS_SEL	0x%x\n",
    1.10 -		offsetof(struct vmx_assist_context, fs_sel));
    1.11 +		(unsigned int)offsetof(struct vmx_assist_context, fs_sel));
    1.12  	printf("#define VMX_ASSIST_CTX_DS_SEL	0x%x\n",
    1.13 -		offsetof(struct vmx_assist_context, ds_sel));
    1.14 +		(unsigned int)offsetof(struct vmx_assist_context, ds_sel));
    1.15  	printf("#define VMX_ASSIST_CTX_ES_SEL	0x%x\n",
    1.16 -		offsetof(struct vmx_assist_context, es_sel));
    1.17 +		(unsigned int)offsetof(struct vmx_assist_context, es_sel));
    1.18  	printf("#define VMX_ASSIST_CTX_SS_SEL	0x%x\n",
    1.19 -		offsetof(struct vmx_assist_context, ss_sel));
    1.20 +		(unsigned int)offsetof(struct vmx_assist_context, ss_sel));
    1.21  	printf("#define VMX_ASSIST_CTX_ESP	0x%x\n",
    1.22 -		offsetof(struct vmx_assist_context, esp));
    1.23 +		(unsigned int)offsetof(struct vmx_assist_context, esp));
    1.24  	printf("#define VMX_ASSIST_CTX_EFLAGS	0x%x\n",
    1.25 -		offsetof(struct vmx_assist_context, eflags));
    1.26 +		(unsigned int)offsetof(struct vmx_assist_context, eflags));
    1.27  	printf("#define VMX_ASSIST_CTX_CS_SEL	0x%x\n",
    1.28 -		offsetof(struct vmx_assist_context, cs_sel));
    1.29 +		(unsigned int)offsetof(struct vmx_assist_context, cs_sel));
    1.30  	printf("#define VMX_ASSIST_CTX_EIP	0x%x\n",
    1.31 -		offsetof(struct vmx_assist_context, eip));
    1.32 +		(unsigned int)offsetof(struct vmx_assist_context, eip));
    1.33  
    1.34  	printf("#define VMX_ASSIST_CTX_CR0	0x%x\n",
    1.35 -		offsetof(struct vmx_assist_context, cr0));
    1.36 +		(unsigned int)offsetof(struct vmx_assist_context, cr0));
    1.37  
    1.38  	return 0;
    1.39  }