[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/2] hvmloader: skip upper field of 64 bit base address register.



This patch skips upper field of 64 bit base address register.

Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>

diff -r 598d92a5ae7a tools/firmware/hvmloader/hvmloader.c
--- a/tools/firmware/hvmloader/hvmloader.c      Wed Aug 20 14:45:21 2008 +0100
+++ b/tools/firmware/hvmloader/hvmloader.c      Mon Aug 25 10:18:07 2008 +0900
@@ -243,6 +243,14 @@
             bars[i].bar_sz  = bar_sz;
 
             nr_bars++;
+
+            /* skip the upper address for 64bit BAR */
+            if ((bar_data & (PCI_BASE_ADDRESS_SPACE |
+                PCI_BASE_ADDRESS_MEM_TYPE_MASK)) == 
+                (PCI_BASE_ADDRESS_SPACE_MEMORY | 
+                PCI_BASE_ADDRESS_MEM_TYPE_64))
+                bar++;
+
         }
 
         /* Map the interrupt. */

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.