ia64/xen-unstable

changeset 6840:810039218827

Fix xc_make_page_below_4G(). Should fix PAE domain
building on >= 4GB systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Sep 14 16:56:05 2005 +0000 (2005-09-14)
parents c9c49385c26e
children 9c9a3bb878c2
files tools/libxc/xc_private.c
line diff
     1.1 --- a/tools/libxc/xc_private.c	Wed Sep 14 16:49:23 2005 +0000
     1.2 +++ b/tools/libxc/xc_private.c	Wed Sep 14 16:56:05 2005 +0000
     1.3 @@ -456,14 +456,14 @@ unsigned long xc_make_page_below_4G(
     1.4      unsigned long new_mfn;
     1.5  
     1.6      if ( xc_domain_memory_decrease_reservation( 
     1.7 -	xc_handle, domid, 1, 0, &mfn) != 1 )
     1.8 +	xc_handle, domid, 1, 0, &mfn) != 0 )
     1.9      {
    1.10  	fprintf(stderr,"xc_make_page_below_4G decrease failed. mfn=%lx\n",mfn);
    1.11  	return 0;
    1.12      }
    1.13  
    1.14      if ( xc_domain_memory_increase_reservation(
    1.15 -        xc_handle, domid, 1, 0, 32, &new_mfn) != 1 )
    1.16 +        xc_handle, domid, 1, 0, 32, &new_mfn) != 0 )
    1.17      {
    1.18  	fprintf(stderr,"xc_make_page_below_4G increase failed. mfn=%lx\n",mfn);
    1.19  	return 0;