bsp/qoriq: Fix L1 cache flush

This commit is contained in:
Sebastian Huber
2017-03-23 10:07:52 +01:00
parent f6e793a2ca
commit d2a45a58aa

View File

@@ -54,14 +54,21 @@ _start:
bl bsp_fdt_copy
#ifdef QORIQ_HAS_WRITE_BACK_L1_CACHE
LWI r3, bsp_section_start_begin
LWI r4, bsp_section_data_load_end
sub r4, r4, r3
bl rtems_cache_flush_multiple_data_lines
#else
bl qoriq_l1cache_invalidate
/*
* See PowerPC e500 Core Family Reference Manual, 11.5, L1 Data Cache
* Flushing.
*/
LWI r3, 12 * 128
mtctr r3
LWI r4, bsp_section_bss_begin
1:
dcbz r0, r4
addi r4, r4, 32
bdnz 1b
#endif
bl qoriq_l1cache_invalidate
#ifdef QORIQ_CLUSTER_1_L2CSR0
LWI r3, QORIQ_CLUSTER_1_L2CSR0
bl qoriq_l2cache_flush_invalidate