Skip to content

Commit

Permalink
soc-ish: fix wrong DBG_CHECK in sedi cache api
Browse files Browse the repository at this point in the history
The previous logic should be reverted.

Signed-off-by: Dong Wang <[email protected]>
  • Loading branch information
kwd-doodling committed Feb 7, 2024
1 parent 199da6d commit 295f9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsp_sedi/soc/intel_ish/include/sedi_driver_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 295f9e1

Please sign in to comment.