diff options
author | Alexander Aring <alex.aring@gmail.com> | 2013-01-15 14:48:43 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-18 08:28:20 +0100 |
commit | 47326f80a9a18ae2dee436e21bfc6770d935be55 (patch) | |
tree | e949efc255e3e37a8460e9923d74f7cf91b3fa6c /arch/sandbox | |
parent | b26c1c30ebf212bf5c18b56856c7ae8241e7db32 (diff) | |
download | barebox-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/sandbox')
-rw-r--r-- | arch/sandbox/include/asm/mmu.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/mmu.h b/arch/sandbox/include/asm/mmu.h new file mode 100644 index 0000000000..bf654206ac --- /dev/null +++ b/arch/sandbox/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 */ |