From 295f9e17e0a62da3d33a5efea383fb7d67ef5b04 Mon Sep 17 00:00:00 2001 From: Dong Wang Date: Wed, 7 Feb 2024 09:43:46 +0800 Subject: [PATCH] soc-ish: fix wrong DBG_CHECK in sedi cache api The previous logic should be reverted. Signed-off-by: Dong Wang --- bsp_sedi/soc/intel_ish/include/sedi_driver_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp_sedi/soc/intel_ish/include/sedi_driver_core.h b/bsp_sedi/soc/intel_ish/include/sedi_driver_core.h index 872fc48..1d614f6 100644 --- a/bsp_sedi/soc/intel_ish/include/sedi_driver_core.h +++ b/bsp_sedi/soc/intel_ish/include/sedi_driver_core.h @@ -30,7 +30,7 @@ static inline void sedi_core_inv_clean_dcache(void) */ static inline int sedi_core_inv_clean_dcache_by_addr(uint32_t *addr, int32_t dsize) { - DBG_CHECK((!addr || dsize <= 0), SEDI_DRIVER_ERROR); + DBG_CHECK((addr && dsize > 0), SEDI_DRIVER_ERROR_PARAMETER); uint32_t start = (uint32_t)addr; uint32_t end = start + dsize;