Skip to contentSkip to conversation

fix Solaris build for xc.c

PATCH New John Levon 1 participant 1 message Nov 29, 2006 Arm/actions semi architecture

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 fix Solaris build for xc.c

# HG changeset patch
# User [email protected]
# Date 1164814228 28800
# Node ID 114308fa192f8e5435314e123adb3bb66c9eae7e # Parent afe7a8c328024f744ffc7154de560dadc83f107b Use XC_PAGE_SIZE not PAGE_SIZE.

tools/python/xen/lowlevel/xc/xc.c +2 -2
@@ -392,7 +392,7 @@ static PyObject *pyxc_hvm_build(XcObject
         return PyErr_SetFromErrno(xc_error);
 
     /* Set up the HVM info table. */
-    va_map = xc_map_foreign_range(self->xc_handle, dom, PAGE_SIZE,
+    va_map = xc_map_foreign_range(self->xc_handle, dom, XC_PAGE_SIZE,
                                   PROT_READ | PROT_WRITE,
                                   HVM_INFO_PFN);
     if ( va_map == NULL )
@@ -407,7 +407,7 @@ static PyObject *pyxc_hvm_build(XcObject
     for ( i = 0, sum = 0; i < va_hvm->length; i++ )
         sum += ((uint8_t *)va_hvm)[i];
     va_hvm->checksum = -sum;
-    munmap(va_map, PAGE_SIZE);
+    munmap(va_map, XC_PAGE_SIZE);
 
     xc_get_hvm_param(self->xc_handle, dom, HVM_PARAM_STORE_PFN, &store_mfn);
     xc_set_hvm_param(self->xc_handle, dom, HVM_PARAM_PAE_ENABLED, pae);