[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] i386: Build fix.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236366435 0
# Node ID bf8faabbc57a99b9384cace0c34da2b008488c4f
# Parent  7c831b755c7866228dd21b306860f88867e1f0b1
i386: Build fix.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/drivers/passthrough/vtd/x86/vtd.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 7c831b755c78 -r bf8faabbc57a xen/drivers/passthrough/vtd/x86/vtd.c
--- a/xen/drivers/passthrough/vtd/x86/vtd.c     Fri Mar 06 19:07:00 2009 +0000
+++ b/xen/drivers/passthrough/vtd/x86/vtd.c     Fri Mar 06 19:07:15 2009 +0000
@@ -153,11 +153,12 @@ void hvm_dpci_isairq_eoi(struct domain *
 
 void iommu_set_dom0_mapping(struct domain *d)
 {
-    u64 i, j, tmp;
-    unsigned long max_pfn = max(max_page, 0x100000000ul >> PAGE_SHIFT);
+    u64 i, j, tmp, max_pfn;
     extern int xen_in_range(paddr_t start, paddr_t end);
 
     BUG_ON(d->domain_id != 0);
+
+    max_pfn = max_t(u64, max_page, 0x100000000ull >> PAGE_SHIFT);
 
     for ( i = 0; i < max_pfn; i++ )
     {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.