summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/cache.h
blob: e5621ebbca3ed4e458234561f16e5c1a8c681c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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);
#else
static inline void arm_early_mmu_cache_flush(void)
{
}
#endif

#endif