summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2013-01-15 14:48:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-18 08:28:20 +0100
commit47326f80a9a18ae2dee436e21bfc6770d935be55 (patch)
treee949efc255e3e37a8460e9923d74f7cf91b3fa6c /arch/nios2
parentb26c1c30ebf212bf5c18b56856c7ae8241e7db32 (diff)
downloadbarebox-47326f80a9a18ae2dee436e21bfc6770d935be55.tar.gz
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 <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/mmu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/mmu.h b/arch/nios2/include/asm/mmu.h
new file mode 100644
index 0000000..bf65420
--- /dev/null
+++ b/arch/nios2/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 */