WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] ioemu: Fix build: use uint64_t rather tha

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] ioemu: Fix build: use uint64_t rather than u64.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 May 2008 09:40:21 -0700
Delivery-date: Mon, 12 May 2008 09:41:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210587403 -3600
# Node ID 0f18d5454c7b6f6a338d16571a064ef5c219c06c
# Parent  c6533d246a8145e342de71cc7b6dc80b8995c68e
ioemu: Fix build: use uint64_t rather than u64.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/ioemu/hw/pass-through.h |    2 +-
 tools/ioemu/hw/pt-msi.c       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -r c6533d246a81 -r 0f18d5454c7b tools/ioemu/hw/pass-through.h
--- a/tools/ioemu/hw/pass-through.h     Mon May 12 11:01:21 2008 +0100
+++ b/tools/ioemu/hw/pass-through.h     Mon May 12 11:16:43 2008 +0100
@@ -76,7 +76,7 @@ struct pt_msix_info {
     int total_entries;
     int bar_index;
     uint32_t table_off;
-    u64 mmio_base_addr;
+    uint64_t mmio_base_addr;
     int mmio_index;
     int fd;
     void *phys_iomem_base;
diff -r c6533d246a81 -r 0f18d5454c7b tools/ioemu/hw/pt-msi.c
--- a/tools/ioemu/hw/pt-msi.c   Mon May 12 11:01:21 2008 +0100
+++ b/tools/ioemu/hw/pt-msi.c   Mon May 12 11:16:43 2008 +0100
@@ -666,7 +666,7 @@ int pt_msix_init(struct pt_dev *dev, int
     uint8_t id;
     uint16_t flags, control;
     int i, total_entries, table_off, bar_index;
-    u64 bar_base;
+    uint64_t bar_base;
     struct pci_dev *pd = dev->pci_dev;
 
     id = pci_read_byte(pd, pos + PCI_CAP_LIST_ID);
@@ -714,7 +714,7 @@ int pt_msix_init(struct pt_dev *dev, int
     if ( (bar_base & 0x6) == 0x4 )
     {
         bar_base &= ~0xf;
-        bar_base += (u64)pci_read_long(pd, 0x10 + 4 * (bar_index + 1)) << 32;
+        bar_base += (uint64_t)pci_read_long(pd, 0x10 + 4 * (bar_index + 1)) << 
32;
     }
     PT_LOG("get MSI-X table bar base %lx\n", bar_base);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] ioemu: Fix build: use uint64_t rather than u64., Xen patchbot-unstable <=