diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/common/block/pcr/pcr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/pcr/pcr.c b/src/soc/intel/common/block/pcr/pcr.c index 6560a4b337..4264cdf5f9 100644 --- a/src/soc/intel/common/block/pcr/pcr.c +++ b/src/soc/intel/common/block/pcr/pcr.c @@ -18,6 +18,10 @@ #include <intelblocks/pcr.h> #include <soc/pcr_ids.h> +#if !defined(CONFIG_PCR_BASE_ADDRESS) || (CONFIG_PCR_BASE_ADDRESS == 0) +#error "PCR_BASE_ADDRESS need to be non-zero!" +#endif + static void *__pcr_reg_address(uint8_t pid, uint16_t offset) { uintptr_t reg_addr; |