summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/lib/pci_ops_mmconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/lib/pci_ops_mmconf.c')
-rw-r--r--src/arch/x86/lib/pci_ops_mmconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/lib/pci_ops_mmconf.c b/src/arch/x86/lib/pci_ops_mmconf.c
index 4853f6bc7eca..e4fa128551a5 100644
--- a/src/arch/x86/lib/pci_ops_mmconf.c
+++ b/src/arch/x86/lib/pci_ops_mmconf.c
@@ -10,7 +10,7 @@
*/
#define PCI_MMIO_ADDR(SEGBUS, DEVFN, WHERE, MASK) \
- ((void *)((CONFIG_MMCONF_BASE_ADDRESS |\
+ ((void *)(((uintptr_t)CONFIG_MMCONF_BASE_ADDRESS |\
(((SEGBUS) & 0xFFF) << 20) |\
(((DEVFN) & 0xFF) << 12) |\
((WHERE) & 0xFFF)) & ~MASK))