ia64/xen-unstable

changeset 19285:bf8faabbc57a

i386: Build fix.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 06 19:07:15 2009 +0000 (2009-03-06)
parents 7c831b755c78
children ec3d0937095d
files xen/drivers/passthrough/vtd/x86/vtd.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/x86/vtd.c	Fri Mar 06 19:07:00 2009 +0000
     1.2 +++ b/xen/drivers/passthrough/vtd/x86/vtd.c	Fri Mar 06 19:07:15 2009 +0000
     1.3 @@ -153,12 +153,13 @@ void hvm_dpci_isairq_eoi(struct domain *
     1.4  
     1.5  void iommu_set_dom0_mapping(struct domain *d)
     1.6  {
     1.7 -    u64 i, j, tmp;
     1.8 -    unsigned long max_pfn = max(max_page, 0x100000000ul >> PAGE_SHIFT);
     1.9 +    u64 i, j, tmp, max_pfn;
    1.10      extern int xen_in_range(paddr_t start, paddr_t end);
    1.11  
    1.12      BUG_ON(d->domain_id != 0);
    1.13  
    1.14 +    max_pfn = max_t(u64, max_page, 0x100000000ull >> PAGE_SHIFT);
    1.15 +
    1.16      for ( i = 0; i < max_pfn; i++ )
    1.17      {
    1.18          /*