mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 07:38:22 +02:00
Correct the mask bits when checking for a 64bit memory base in PCI config
space (bugzilla #2963).
This commit is contained in:
parent
adac701196
commit
6848b03538
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@
|
|||
#define PCI_MAP_IS_MEM(b) (!PCI_MAP_IS_IO(b))
|
||||
|
||||
#define PCI_MAP_IS64BITMEM(b) \
|
||||
(((b) & PCI_MAP_MEMORY_TYPE_MASK) == PCI_MAP_MEMORY_TYPE_64BIT)
|
||||
(((b) & PCI_MAP_MEMORY_TYPE) == PCI_MAP_MEMORY_TYPE_64BIT)
|
||||
|
||||
#define PCIGETMEMORY(b) ((b) & PCI_MAP_MEMORY_ADDRESS_MASK)
|
||||
#define PCIGETMEMORY64HIGH(b) (*((CARD32*)&(b) + 1))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue