mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-22 18:30:06 +01:00
//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:
parent
e1f4b3fea8
commit
fb9fb8ead9
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue