Fix hardfault when DCache is disabled with no callback (#1935)
This commit is contained in:
@@ -241,6 +241,7 @@ static void invalidate_cache(void)
|
|||||||
if(disp->driver.clean_dcache_cb) disp->driver.clean_dcache_cb(&disp->driver);
|
if(disp->driver.clean_dcache_cb) disp->driver.clean_dcache_cb(&disp->driver);
|
||||||
else {
|
else {
|
||||||
#if __CORTEX_M >= 0x07
|
#if __CORTEX_M >= 0x07
|
||||||
|
if((SCB->CCR) & (uint32_t)SCB_CCR_DC_Msk)
|
||||||
SCB_CleanInvalidateDCache();
|
SCB_CleanInvalidateDCache();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user