Change naming from cp_XYZ_cache() to arch_XYP_cache() so that all cache operations will pick up L2 support if it is enabled

This commit is contained in:
Gregory Nutt 2014-07-26 18:47:33 -06:00
parent e436b0bc96
commit 8e20aae28f
2 changed files with 5 additions and 5 deletions

View File

@ -187,8 +187,8 @@ int nor_main(int argc, char *argv)
/* Invalidate caches and TLBs */
cp15_invalidate_icache();
cp15_invalidate_dcache_all();
arch_invalidate_icache();
arch_invalidate_dcache_all();
cp15_invalidate_tlbs();
/* Then jump into NOR flash */

View File

@ -134,7 +134,7 @@ int dram_main(int argc, char *argv)
* we disable caching.
*/
cp15_clean_dcache((uintptr_t)SAM_DDRCS_VSECTION,
arch_clean_dcache((uintptr_t)SAM_DDRCS_VSECTION,
(uintptr_t)(SAM_DDRCS_VSECTION + CONFIG_SAMA5_DDRCS_SIZE));
/* Interrupts must be disabled through the following. In this configuration,
@ -155,8 +155,8 @@ int dram_main(int argc, char *argv)
/* Invalidate caches and TLBs */
cp15_invalidate_icache();
cp15_invalidate_dcache_all();
arch_invalidate_icache();
arch_invalidate_dcache_all();
cp15_invalidate_tlbs();
/* Then jump into NOR flash */