ia64/xen-unstable

changeset 18251:f9419c57b360

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>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Aug 04 16:45:11 2008 +0100 (2008-08-04)
parents 82edd418d898
children 035b4ee95328
files extras/mini-os/fs-front.c
line diff
     1.1 --- a/extras/mini-os/fs-front.c	Mon Aug 04 16:44:14 2008 +0100
     1.2 +++ b/extras/mini-os/fs-front.c	Mon Aug 04 16:45:11 2008 +0100
     1.3 @@ -818,14 +818,14 @@ void *alloc_buffer_page(struct fs_reques
     1.4      page = (void *)alloc_page(); 
     1.5      *gref = gnttab_grant_access(domid, virt_to_mfn(page), 0); 
     1.6      req->private1 = page;
     1.7 -    req->private2 = (void *)(uint64_t)(*gref);
     1.8 +    req->private2 = (void *)(uintptr_t)(*gref);
     1.9  
    1.10      return page;
    1.11  }
    1.12  
    1.13  void free_buffer_page(struct fs_request *req)
    1.14  {
    1.15 -    gnttab_end_access((grant_ref_t)(uint64_t)req->private2);
    1.16 +    gnttab_end_access((grant_ref_t)(uintptr_t)req->private2);
    1.17      free_page(req->private1);
    1.18  }
    1.19