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:
parent
c2600d8289
commit
b115261991
1 changed files with 10 additions and 0 deletions
|
@ -144,6 +144,8 @@ static inline unsigned long SWAB32(unsigned long value)
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define invalidate_icache()
|
||||||
|
|
||||||
#elif CONFIG_CPU == MCF5249
|
#elif CONFIG_CPU == MCF5249
|
||||||
#define HIGHEST_IRQ_LEVEL (7<<8)
|
#define HIGHEST_IRQ_LEVEL (7<<8)
|
||||||
static inline int set_irq_level(int level)
|
static inline int set_irq_level(int level)
|
||||||
|
@ -178,6 +180,12 @@ static inline unsigned long SWAB32(unsigned long value)
|
||||||
return (lo << 16) | hi;
|
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
|
#elif CONFIG_CPU == TCC730
|
||||||
|
|
||||||
extern void* volatile interrupt_vector[16] __attribute__ ((section(".idata")));
|
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;
|
return (lo << 16) | hi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define invalidate_icache()
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue