ia64/xen-unstable

changeset 17483:d211ef6723ab

x86: Fix the non-PAE build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Apr 17 15:48:40 2008 +0100 (2008-04-17)
parents e14fee5ecc80
children 7683bb98d4e3
files xen/drivers/passthrough/vtd/x86/vtd.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/x86/vtd.c	Thu Apr 17 12:37:35 2008 +0100
     1.2 +++ b/xen/drivers/passthrough/vtd/x86/vtd.c	Thu Apr 17 15:48:40 2008 +0100
     1.3 @@ -130,8 +130,6 @@ void iommu_set_pgd(struct domain *d)
     1.4  {
     1.5      struct hvm_iommu *hd  = domain_hvm_iommu(d);
     1.6      unsigned long p2m_table;
     1.7 -    int level = agaw_to_level(hd->agaw);
     1.8 -    l3_pgentry_t *l3e;
     1.9  
    1.10      p2m_table = mfn_x(pagetable_get_mfn(d->arch.phys_table));
    1.11  
    1.12 @@ -173,6 +171,8 @@ void iommu_set_pgd(struct domain *d)
    1.13          int i;
    1.14          u64 pmd_maddr;
    1.15          unsigned long flags;
    1.16 +        l3_pgentry_t *l3e;
    1.17 +        int level = agaw_to_level(hd->agaw);
    1.18  
    1.19          spin_lock_irqsave(&hd->mapping_lock, flags);
    1.20          hd->pgd_maddr = alloc_pgtable_maddr();
    1.21 @@ -236,6 +236,8 @@ void iommu_set_pgd(struct domain *d)
    1.22  
    1.23  #elif CONFIG_PAGING_LEVELS == 4
    1.24          mfn_t pgd_mfn;
    1.25 +        l3_pgentry_t *l3e;
    1.26 +        int level = agaw_to_level(hd->agaw);
    1.27  
    1.28          switch ( level )
    1.29          {