ia64/xen-unstable

changeset 17634:0f18d5454c7b

ioemu: Fix build: use uint64_t rather than u64.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon May 12 11:16:43 2008 +0100 (2008-05-12)
parents c6533d246a81
children 0a8fc1a62796
files tools/ioemu/hw/pass-through.h tools/ioemu/hw/pt-msi.c
line diff
     1.1 --- a/tools/ioemu/hw/pass-through.h	Mon May 12 11:01:21 2008 +0100
     1.2 +++ b/tools/ioemu/hw/pass-through.h	Mon May 12 11:16:43 2008 +0100
     1.3 @@ -76,7 +76,7 @@ struct pt_msix_info {
     1.4      int total_entries;
     1.5      int bar_index;
     1.6      uint32_t table_off;
     1.7 -    u64 mmio_base_addr;
     1.8 +    uint64_t mmio_base_addr;
     1.9      int mmio_index;
    1.10      int fd;
    1.11      void *phys_iomem_base;
     2.1 --- a/tools/ioemu/hw/pt-msi.c	Mon May 12 11:01:21 2008 +0100
     2.2 +++ b/tools/ioemu/hw/pt-msi.c	Mon May 12 11:16:43 2008 +0100
     2.3 @@ -666,7 +666,7 @@ int pt_msix_init(struct pt_dev *dev, int
     2.4      uint8_t id;
     2.5      uint16_t flags, control;
     2.6      int i, total_entries, table_off, bar_index;
     2.7 -    u64 bar_base;
     2.8 +    uint64_t bar_base;
     2.9      struct pci_dev *pd = dev->pci_dev;
    2.10  
    2.11      id = pci_read_byte(pd, pos + PCI_CAP_LIST_ID);
    2.12 @@ -714,7 +714,7 @@ int pt_msix_init(struct pt_dev *dev, int
    2.13      if ( (bar_base & 0x6) == 0x4 )
    2.14      {
    2.15          bar_base &= ~0xf;
    2.16 -        bar_base += (u64)pci_read_long(pd, 0x10 + 4 * (bar_index + 1)) << 32;
    2.17 +        bar_base += (uint64_t)pci_read_long(pd, 0x10 + 4 * (bar_index + 1)) << 32;
    2.18      }
    2.19      PT_LOG("get MSI-X table bar base %lx\n", bar_base);
    2.20