From 47326f80a9a18ae2dee436e21bfc6770d935be55 Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Tue, 15 Jan 2013 14:48:43 +0100 Subject: remap_range: make function 'remap_range' global Change function remap_range in arm architecture to make it global accessable. For example command 'memtest' can change pte flags to enable or disable cache. Add dummy function for others architectures that doesn't have mmu or pte support. Signed-off-by: Alexander Aring Signed-off-by: Sascha Hauer --- arch/x86/include/asm/mmu.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 arch/x86/include/asm/mmu.h (limited to 'arch/x86/include/asm/mmu.h') diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h new file mode 100644 index 0000000000..bf654206ac --- /dev/null +++ b/arch/x86/include/asm/mmu.h @@ -0,0 +1,18 @@ +#ifndef __ASM_MMU_H +#define __ASM_MMU_H + +static inline void remap_range(void *_start, size_t size, uint32_t flags) +{ +} + +static inline uint32_t mmu_get_pte_cached_flags(void) +{ + return 0; +} + +static inline uint32_t mmu_get_pte_uncached_flags(void) +{ + return 0; +} + +#endif /* __ASM_MMU_H */ -- cgit v1.2.3