diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
commit | 0ccceacd058c82f9cd747dff5efa92eebaded2fc (patch) | |
tree | db45e84b1a53bc674eccef0aa577ac1b5462b6a3 /tools/libxc/xc_minios.c | |
parent | b3f425bbfef9460c9e405e9a638b6aad8652c032 (diff) | |
download | xen-0ccceacd058c82f9cd747dff5efa92eebaded2fc.tar.gz xen-0ccceacd058c82f9cd747dff5efa92eebaded2fc.tar.bz2 xen-0ccceacd058c82f9cd747dff5efa92eebaded2fc.zip |
libxc: osdep: Use XC_PAGE_{SHIFT,MASK}.
Avoid dependency on xc_private.h
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_minios.c')
-rw-r--r-- | tools/libxc/xc_minios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_minios.c b/tools/libxc/xc_minios.c index ee0468782a..db8d3b8810 100644 --- a/tools/libxc/xc_minios.c +++ b/tools/libxc/xc_minios.c @@ -169,11 +169,11 @@ static void *minios_privcmd_map_foreign_ranges(xc_interface *xch, xc_osdep_handl pt_prot = L1_PROT; #endif - mfns = malloc((size / PAGE_SIZE) * sizeof(*mfns)); + mfns = malloc((size / XC_PAGE_SIZE) * sizeof(*mfns)); n = 0; for (i = 0; i < nentries; i++) - for (j = 0; j < chunksize / PAGE_SIZE; j++) + for (j = 0; j < chunksize / XC_PAGE_SIZE; j++) mfns[n++] = entries[i].mfn + j; ret = map_frames_ex(mfns, n, 1, 0, 1, dom, NULL, pt_prot); |