ia64/xen-unstable

changeset 18405:1ac3e2a44dc9

hvmloader: skip upper field of 64 bit base address register.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Aug 28 09:59:49 2008 +0100 (2008-08-28)
parents 5d30ca2b2efd
children 11606c429084
files tools/firmware/hvmloader/hvmloader.c
line diff
     1.1 --- a/tools/firmware/hvmloader/hvmloader.c	Thu Aug 28 09:58:01 2008 +0100
     1.2 +++ b/tools/firmware/hvmloader/hvmloader.c	Thu Aug 28 09:59:49 2008 +0100
     1.3 @@ -243,6 +243,13 @@ static void pci_setup(void)
     1.4              bars[i].bar_sz  = bar_sz;
     1.5  
     1.6              nr_bars++;
     1.7 +
     1.8 +            /* Skip the upper-half of the address for a 64-bit BAR. */
     1.9 +            if ( (bar_data & (PCI_BASE_ADDRESS_SPACE |
    1.10 +                              PCI_BASE_ADDRESS_MEM_TYPE_MASK)) == 
    1.11 +                 (PCI_BASE_ADDRESS_SPACE_MEMORY | 
    1.12 +                  PCI_BASE_ADDRESS_MEM_TYPE_64) )
    1.13 +                bar++;
    1.14          }
    1.15  
    1.16          /* Map the interrupt. */