summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-02-09 14:18:46 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-02-09 14:18:46 +0000
commitb1152619910922b48db0bf9dd792ea1ac72f91a7 (patch)
treec24cd9563a635e8202a547eb7a389d9ca4a7ad57 /firmware/export
parentc2600d82896f821d843efd8c6925c86725e1460c (diff)
downloadrockbox-b1152619910922b48db0bf9dd792ea1ac72f91a7.tar.gz
rockbox-b1152619910922b48db0bf9dd792ea1ac72f91a7.zip
Added invalidate_icache()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5870 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/system.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index b1b5b025a9..121deafc7e 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -144,6 +144,8 @@ static inline unsigned long SWAB32(unsigned long value)
144 return value; 144 return value;
145} 145}
146 146
147#define invalidate_icache()
148
147#elif CONFIG_CPU == MCF5249 149#elif CONFIG_CPU == MCF5249
148#define HIGHEST_IRQ_LEVEL (7<<8) 150#define HIGHEST_IRQ_LEVEL (7<<8)
149static inline int set_irq_level(int level) 151static inline int set_irq_level(int level)
@@ -178,6 +180,12 @@ static inline unsigned long SWAB32(unsigned long value)
178 return (lo << 16) | hi; 180 return (lo << 16) | hi;
179} 181}
180 182
183static inline void invalidate_icache(void)
184{
185 asm volatile ("move.l #0x81000000,%d0\n"
186 "movec.l %d0,%cacr");
187}
188
181#elif CONFIG_CPU == TCC730 189#elif CONFIG_CPU == TCC730
182 190
183extern void* volatile interrupt_vector[16] __attribute__ ((section(".idata"))); 191extern void* volatile interrupt_vector[16] __attribute__ ((section(".idata")));
@@ -223,6 +231,8 @@ static inline unsigned long SWAB32(unsigned long value)
223 return (lo << 16) | hi; 231 return (lo << 16) | hi;
224} 232}
225 233
234#define invalidate_icache()
235
226#endif 236#endif
227#endif 237#endif
228 238