ia64/xen-unstable

changeset 12705:b7095209e31a

[LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
Signed-off-by: John Levon <john.levon@sun.com>
author kfraser@localhost.localdomain
date Thu Nov 30 17:36:03 2006 +0000 (2006-11-30)
parents 30fe5097cf7f
children 582d21e2d3cd
files tools/python/xen/lowlevel/xc/xc.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xc/xc.c	Thu Nov 30 17:34:48 2006 +0000
     1.2 +++ b/tools/python/xen/lowlevel/xc/xc.c	Thu Nov 30 17:36:03 2006 +0000
     1.3 @@ -392,7 +392,7 @@ static PyObject *pyxc_hvm_build(XcObject
     1.4          return PyErr_SetFromErrno(xc_error);
     1.5  
     1.6      /* Set up the HVM info table. */
     1.7 -    va_map = xc_map_foreign_range(self->xc_handle, dom, PAGE_SIZE,
     1.8 +    va_map = xc_map_foreign_range(self->xc_handle, dom, XC_PAGE_SIZE,
     1.9                                    PROT_READ | PROT_WRITE,
    1.10                                    HVM_INFO_PFN);
    1.11      if ( va_map == NULL )
    1.12 @@ -407,7 +407,7 @@ static PyObject *pyxc_hvm_build(XcObject
    1.13      for ( i = 0, sum = 0; i < va_hvm->length; i++ )
    1.14          sum += ((uint8_t *)va_hvm)[i];
    1.15      va_hvm->checksum = -sum;
    1.16 -    munmap(va_map, PAGE_SIZE);
    1.17 +    munmap(va_map, XC_PAGE_SIZE);
    1.18  
    1.19      xc_get_hvm_param(self->xc_handle, dom, HVM_PARAM_STORE_PFN, &store_mfn);
    1.20      xc_set_hvm_param(self->xc_handle, dom, HVM_PARAM_PAE_ENABLED, pae);