aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-08-04 16:45:11 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-08-04 16:45:11 +0100
commit7a65b19d09e2b591c9c9bb8ccf3b83767c586660 (patch)
tree96174c236602d526c1e7a2a589160fda07f77649
parent10f71cbcc910500b31c59e082c3b0e477e704713 (diff)
downloadxen-7a65b19d09e2b591c9c9bb8ccf3b83767c586660.tar.gz
xen-7a65b19d09e2b591c9c9bb8ccf3b83767c586660.tar.bz2
xen-7a65b19d09e2b591c9c9bb8ccf3b83767c586660.zip
mini-os: Fix 32bit compilation of fs-front.c
Reported-by: Trolle Selander <trolle.selander@eu.citrix.com> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
-rw-r--r--extras/mini-os/fs-front.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/mini-os/fs-front.c b/extras/mini-os/fs-front.c
index a14699f014..c81f1a66c9 100644
--- a/extras/mini-os/fs-front.c
+++ b/extras/mini-os/fs-front.c
@@ -818,14 +818,14 @@ void *alloc_buffer_page(struct fs_request *req, domid_t domid, grant_ref_t *gref
page = (void *)alloc_page();
*gref = gnttab_grant_access(domid, virt_to_mfn(page), 0);
req->private1 = page;
- req->private2 = (void *)(uint64_t)(*gref);
+ req->private2 = (void *)(uintptr_t)(*gref);
return page;
}
void free_buffer_page(struct fs_request *req)
{
- gnttab_end_access((grant_ref_t)(uint64_t)req->private2);
+ gnttab_end_access((grant_ref_t)(uintptr_t)req->private2);
free_page(req->private1);
}