summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2009-07-05 01:17:25 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2009-07-05 01:17:25 +0000
commit7131ddb105fe4f3f8f9f3d500a12ac24cf051c9a (patch)
treedb057d77cc4866e140ea7fe6138ea24b27bc47a8
parent2aabdbfeb843763664783223fa1f7fd83d21a6f6 (diff)
downloadrockbox-7131ddb105fe4f3f8f9f3d500a12ac24cf051c9a.tar.gz
rockbox-7131ddb105fe4f3f8f9f3d500a12ac24cf051c9a.zip
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
-rw-r--r--firmware/target/arm/as3525/system-target.h1
-rw-r--r--firmware/target/arm/mmu-arm.h5
2 files changed, 6 insertions, 0 deletions
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