summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/device/pci_ops_mmconf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/pci_ops_mmconf.c b/src/device/pci_ops_mmconf.c
index fb085a6852..40fa632e9c 100644
--- a/src/device/pci_ops_mmconf.c
+++ b/src/device/pci_ops_mmconf.c
@@ -17,6 +17,10 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
+#if !defined(CONFIG_MMCONF_BASE_ADDRESS) || !CONFIG_MMCONF_BASE_ADDRESS
+#error "CONFIG_MMCONF_BASE_ADDRESS needs to be non-zero!"
+#endif
+
/*
* Functions for accessing PCI configuration space with mmconf accesses
*/