1
0
Fork 0
forked from len0rd/rockbox

Added invalidate_icache()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5870 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-02-09 14:18:46 +00:00
parent c2600d8289
commit b115261991

View file

@ -144,6 +144,8 @@ static inline unsigned long SWAB32(unsigned long value)
return value;
}
#define invalidate_icache()
#elif CONFIG_CPU == MCF5249
#define HIGHEST_IRQ_LEVEL (7<<8)
static inline int set_irq_level(int level)
@ -178,6 +180,12 @@ static inline unsigned long SWAB32(unsigned long value)
return (lo << 16) | hi;
}
static inline void invalidate_icache(void)
{
asm volatile ("move.l #0x81000000,%d0\n"
"movec.l %d0,%cacr");
}
#elif CONFIG_CPU == TCC730
extern void* volatile interrupt_vector[16] __attribute__ ((section(".idata")));
@ -223,6 +231,8 @@ static inline unsigned long SWAB32(unsigned long value)
return (lo << 16) | hi;
}
#define invalidate_icache()
#endif
#endif