summaryrefslogtreecommitdiffstats
path: root/arch/ppc
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/ppc
parentb26c1c30ebf212bf5c18b56856c7ae8241e7db32 (diff)
downloadbarebox-47326f80a9a18ae2dee436e21bfc6770d935be55.tar.gz
barebox-47326f80a9a18ae2dee436e21bfc6770d935be55.tar.xz
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/ppc')
-rw-r--r--arch/ppc/include/asm/mmu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/ppc/include/asm/mmu.h b/arch/ppc/include/asm/mmu.h
index b2dd0b7b2b..179ec2b1a9 100644
--- a/arch/ppc/include/asm/mmu.h
+++ b/arch/ppc/include/asm/mmu.h
@@ -540,4 +540,22 @@ extern int write_bat(ppc_bat_t bat, unsigned long upper, unsigned long lower);
(rt<<21)|(ra<<16)|(ws<<11)|(946<<1)
#endif
+
+#ifndef __ASSEMBLY__
+
+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
+
#endif /* _PPC_MMU_H_ */