ia64/xen-unstable

changeset 18675:dacc54242a63

Fix ioapic_rte_to_remap_entry() on IA64.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Oct 21 09:53:34 2008 +0100 (2008-10-21)
parents 353f2359230a
children 459f7ca6cf2a
files xen/drivers/passthrough/vtd/intremap.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/intremap.c	Tue Oct 21 09:49:19 2008 +0100
     1.2 +++ b/xen/drivers/passthrough/vtd/intremap.c	Tue Oct 21 09:53:34 2008 +0100
     1.3 @@ -129,7 +129,13 @@ static int ioapic_rte_to_remap_entry(str
     1.4      memcpy(&new_ire, iremap_entry, sizeof(struct iremap_entry));
     1.5  
     1.6      if ( rte_upper )
     1.7 +    {
     1.8 +#if defined(__i386__) || defined(__x86_64__)
     1.9          new_ire.lo.dst = (value >> 24) << 8;
    1.10 +#else /* __ia64__ */
    1.11 +        new_ire.lo.dst = value >> 16;
    1.12 +#endif
    1.13 +    }
    1.14      else
    1.15      {
    1.16          *(((u32 *)&new_rte) + 0) = value;