summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/mmu-common.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-17 16:38:25 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-21 10:34:06 +0100
commit7aeebcb3ba069bf9c8bb699630928ee84ba60bc4 (patch)
tree45e2cb47299d7d5b371a5bf476c955f2c7530efc /arch/arm/cpu/mmu-common.h
parentf6cfdf9288238ce61b9103cbeb9c63275b39b69f (diff)
downloadbarebox-7aeebcb3ba069bf9c8bb699630928ee84ba60bc4.tar.gz
barebox-7aeebcb3ba069bf9c8bb699630928ee84ba60bc4.tar.xz
ARM: mmu: Share sanity checking code in mmu_init()
Share sanity checking code in mmu_init() as well as code to detect if MMU is on or not on both ARM and ARM64. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/mmu-common.h')
-rw-r--r--arch/arm/cpu/mmu-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/mmu-common.h b/arch/arm/cpu/mmu-common.h
index e8689ac310..37eef3ef28 100644
--- a/arch/arm/cpu/mmu-common.h
+++ b/arch/arm/cpu/mmu-common.h
@@ -3,5 +3,6 @@
void dma_inv_range(void *ptr, size_t size);
void *dma_alloc_map(size_t size, dma_addr_t *dma_handle, unsigned flags);
+void __mmu_init(bool mmu_on);
#endif \ No newline at end of file