From 7131ddb105fe4f3f8f9f3d500a12ac24cf051c9a Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Sun, 5 Jul 2009 01:17:25 +0000 Subject: ARM922T's icache isn't coherent with its dcache, so we need to ensure that its flushed before changing codecs. Playback takes care of this for us, but only if we define cache coherency functions. Do that. Also, add a comment explaining that MMU functions need to be included so that other people don't spend hours chasing them in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21647 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/system-target.h | 1 + firmware/target/arm/mmu-arm.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/firmware/target/arm/as3525/system-target.h b/firmware/target/arm/as3525/system-target.h index eb59709cd3..292ad1bbea 100644 --- a/firmware/target/arm/as3525/system-target.h +++ b/firmware/target/arm/as3525/system-target.h @@ -22,6 +22,7 @@ #define SYSTEM_TARGET_H #include "system-arm.h" +#include "mmu-arm.h" #include "clock-target.h" /* CPUFREQ_* are defined here */ diff --git a/firmware/target/arm/mmu-arm.h b/firmware/target/arm/mmu-arm.h index f3e8a8d7a0..1cf1f68d00 100644 --- a/firmware/target/arm/mmu-arm.h +++ b/firmware/target/arm/mmu-arm.h @@ -18,6 +18,11 @@ * KIND, either express or implied. * ****************************************************************************/ + +/* This file MUST be included in your system-target.h file if you want arm + * cache coherence functions to be called (I.E. during codec load, etc). + */ + #ifndef MMU_ARM_H #define MMU_ARM_H -- cgit v1.2.3