microwatt: Add icache flush
This commit is contained in:
parent
e6909e2978
commit
68d2aa45fa
|
@ -5,8 +5,11 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
__attribute__((unused)) static void flush_cpu_icache(void){}; /* FIXME: do something useful here! */
|
||||
__attribute__((unused)) static void flush_cpu_dcache(void){}; /* FIXME: do something useful here! */
|
||||
static inline void flush_cpu_icache(void)
|
||||
{
|
||||
__asm__ volatile ("icbi 0,0; isync" : : : "memory");
|
||||
}
|
||||
static inline void flush_cpu_dcache(void){}; /* FIXME: do something useful here! */
|
||||
void flush_l2_cache(void);
|
||||
|
||||
void busy_wait(unsigned int ms);
|
||||
|
|
Loading…
Reference in New Issue