summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-02-26 14:32:14 +0000
committerjhb <jhb@FreeBSD.org>2009-02-26 14:32:14 +0000
commitfb70a002f2760a40274da9dacaa3edd815884665 (patch)
tree9fec7873a185e6c1f8288b3210cdc037a893bc3d
parentf854be19d0fd46c7d395cec89aee00c79d280ac1 (diff)
downloadFreeBSD-src-fb70a002f2760a40274da9dacaa3edd815884665.zip
FreeBSD-src-fb70a002f2760a40274da9dacaa3edd815884665.tar.gz
Don't throw away upper 32-bits of the HT MSI address window. In practice
this is harmless since the address window for MSI on x86 is in the lower 4 GB. Submitted by: mav MFC after: 1 week
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 633c4d5..8f1e51f 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -554,7 +554,7 @@ pci_read_extcap(device_t pcib, pcicfgregs *cfg)
addr = REG(ptr + PCIR_HTMSI_ADDRESS_HI,
4);
addr <<= 32;
- addr = REG(ptr + PCIR_HTMSI_ADDRESS_LO,
+ addr |= REG(ptr + PCIR_HTMSI_ADDRESS_LO,
4);
if (addr != MSI_INTEL_ADDR_BASE)
device_printf(pcib,
OpenPOWER on IntegriCloud