//freedesktop.org/bugzilla/show_bug.cgi?id=2322) attachment #1709

(https://bugs.freedesktop.org/attachment.cgi?id=1709): Fix corruption
    of PCI config BAR1 of native PCI-Express boards on 64-bit platforms.
    Patch by Michael Yaroslavtsev <mike.work@besm6.org>.
This commit is contained in:
Roland Mainz 2005-01-25 02:52:42 +00:00
parent e1f4b3fea8
commit fb9fb8ead9

View file

@ -304,7 +304,7 @@ FindPCIVideoInfo(void)
mem64 = TRUE;
#if defined(LONG64) || defined(WORD64)
info->memBase[0] |=
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base1) << 32;
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base0) << 32;
#else
if (pcrp->pci_base1)
info->memBase[0] = 0;
@ -324,7 +324,7 @@ FindPCIVideoInfo(void)
mem64 = TRUE;
#if defined(LONG64) || defined(WORD64)
info->memBase[1] |=
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base2) << 32;
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base1) << 32;
#else
if (pcrp->pci_base2)
info->memBase[1] = 0;
@ -345,7 +345,7 @@ FindPCIVideoInfo(void)
mem64 = TRUE;
#if defined(LONG64) || defined(WORD64)
info->memBase[2] |=
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base3) << 32;
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base2) << 32;
#else
if (pcrp->pci_base3)
info->memBase[2] = 0;
@ -366,7 +366,7 @@ FindPCIVideoInfo(void)
mem64 = TRUE;
#if defined(LONG64) || defined(WORD64)
info->memBase[3] |=
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base4) << 32;
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base3) << 32;
#else
if (pcrp->pci_base4)
info->memBase[3] = 0;
@ -387,7 +387,7 @@ FindPCIVideoInfo(void)
mem64 = TRUE;
#if defined(LONG64) || defined(WORD64)
info->memBase[4] |=
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base5) << 32;
(memType)PCIGETMEMORY64HIGH(pcrp->pci_base4) << 32;
#else
if (pcrp->pci_base5)
info->memBase[4] = 0;