forked from Imagelibrary/rtems
bsp/arm: Consistenly same handling for flushing
It is importeant to consistently apply the same handling for flushing within level 2 and level 1 cache handling. In this case now both handling use clean and invalidate.
This commit is contained in:
committed by
Sebastian Huber
parent
e331e69a47
commit
9ee2ec56b5
@@ -252,8 +252,8 @@ static inline void arm_cache_l1_flush_data_range(
|
|||||||
ARM_CACHE_L1_ERRATA_764369_HANDLER();
|
ARM_CACHE_L1_ERRATA_764369_HANDLER();
|
||||||
|
|
||||||
for (; adx <= ADDR_LAST; adx += ARM_CACHE_L1_CPU_DATA_ALIGNMENT ) {
|
for (; adx <= ADDR_LAST; adx += ARM_CACHE_L1_CPU_DATA_ALIGNMENT ) {
|
||||||
/* Store the Data cache line */
|
/* Store and invalidate the Data cache line */
|
||||||
arm_cp15_data_cache_clean_line( (void*)adx );
|
arm_cp15_data_cache_clean_and_invalidate_line( (void*)adx );
|
||||||
}
|
}
|
||||||
/* Wait for L1 store to complete */
|
/* Wait for L1 store to complete */
|
||||||
_ARM_Data_synchronization_barrier();
|
_ARM_Data_synchronization_barrier();
|
||||||
|
|||||||
Reference in New Issue
Block a user