debuggers.hg

changeset 22289:fc2242ac90e1

x86/msi: fix inverted masks in c/s 22182:68cc3c514a0a

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir@xen.org>
date Mon Oct 18 11:31:47 2010 +0100 (2010-10-18)
parents 7831b8e5aae2
children 86cf01f3d737
files xen/arch/x86/msi.c
line diff
     1.1 --- a/xen/arch/x86/msi.c	Mon Oct 18 11:30:10 2010 +0100
     1.2 +++ b/xen/arch/x86/msi.c	Mon Oct 18 11:31:47 2010 +0100
     1.3 @@ -549,14 +549,14 @@ static u64 read_pci_mem_bar(u8 bus, u8 s
     1.4          return 0;
     1.5      if ( (addr & PCI_BASE_ADDRESS_MEM_TYPE_MASK) == PCI_BASE_ADDRESS_MEM_TYPE_64 )
     1.6      {
     1.7 -        addr &= ~PCI_BASE_ADDRESS_MEM_MASK;
     1.8 +        addr &= PCI_BASE_ADDRESS_MEM_MASK;
     1.9          if ( ++bir >= limit )
    1.10              return 0;
    1.11          return addr |
    1.12                 ((u64)pci_conf_read32(bus, slot, func,
    1.13                                       PCI_BASE_ADDRESS_0 + bir * 4) << 32);
    1.14      }
    1.15 -    return addr & ~PCI_BASE_ADDRESS_MEM_MASK;
    1.16 +    return addr & PCI_BASE_ADDRESS_MEM_MASK;
    1.17  }
    1.18  
    1.19  /**