Newer
Older
barebox / arch / arm / include / asm / cache.h
@Sascha Hauer Sascha Hauer on 23 May 2013 416 bytes ARM: invalidate data caches during early init
#ifndef __ASM_CACHE_H
#define __ASM_CACHE_H

static inline void flush_icache(void)
{
	asm volatile("mcr p15, 0, %0, c7, c5, 0" : : "r" (0));
}

int arm_set_cache_functions(void);

#ifdef CONFIG_MMU
void arm_early_mmu_cache_flush(void);
void arm_early_mmu_cache_invalidate(void);
#else
static inline void arm_early_mmu_cache_flush(void)
{
}

static inline void arm_early_mmu_cache_invalidate(void)
{
}
#endif

#endif