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 #include +#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 */