summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/cache.h
blob: b5460a78767e43d0176c302386d5bd5074a6073b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __ASM_CACHE_H
#define __ASM_CACHE_H

#ifdef CONFIG_CPU_64v8
extern void v8_invalidate_icache_all(void);
extern void v8_dcache_all(void);
#endif

static inline void icache_invalidate(void)
{
#if __LINUX_ARM_ARCH__ <= 7
	asm volatile("mcr p15, 0, %0, c7, c5, 0" : : "r" (0));
#else
	v8_invalidate_icache_all();
#endif
}

int arm_set_cache_functions(void);

void arm_early_mmu_cache_flush(void);
void arm_early_mmu_cache_invalidate(void);

#endif