From 2caa59cddcd59dc5e3da7977421d63f1be49ce6f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 7 May 2008 15:53:28 +0100 Subject: [PATCH] merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/iommu: PAGE_SHIFT is 14 on ia64 --- hw/iommu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/iommu.c b/hw/iommu.c index 440847f2b2..4ae509eb9a 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -109,7 +109,11 @@ do { printf("IOMMU: " fmt , ##args); } while (0) #define IOPTE_VALID 0x00000002 /* IOPTE is valid */ #define IOPTE_WAZ 0x00000001 /* Write as zeros */ +#if defined(__i386__) || defined(__x86_64__) #define PAGE_SHIFT 12 +#elif defined(__ia64__) +#define PAGE_SHIFT 14 +#endif #define PAGE_SIZE (1 << PAGE_SHIFT) #define PAGE_MASK (PAGE_SIZE - 1) -- 2.39.5