summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/nommu.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-05 20:58:29 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-05 21:27:16 +0200
commit0371d3f7e8f1cddaee1f215e42c09a40e235d810 (patch)
tree01f4b320ca6ed709d2b24a1eefa5499427ee36de /arch/arm/mm/nommu.c
parentARM: 6990/1: MAINTAINERS: add entry for ARM PMU profiling and debugging (diff)
downloadlinux-0371d3f7e8f1cddaee1f215e42c09a40e235d810.tar.xz
linux-0371d3f7e8f1cddaee1f215e42c09a40e235d810.zip
ARM: move memory layout sanity checking before meminfo initialization
Ensure that the meminfo array is sanity checked before we pass the memory to memblock. This helps to ensure that memblock and meminfo agree on the dimensions of memory, especially when more memory is passed than the kernel can deal with. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/nommu.c')
-rw-r--r--arch/arm/mm/nommu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c
index 687d02319a41..941a98c9e8aa 100644
--- a/arch/arm/mm/nommu.c
+++ b/arch/arm/mm/nommu.c
@@ -27,6 +27,10 @@ void __init arm_mm_memblock_reserve(void)
memblock_reserve(CONFIG_VECTORS_BASE, PAGE_SIZE);
}
+void __init sanity_check_meminfo(void)
+{
+}
+
/*
* paging_init() sets up the page tables, initialises the zone memory
* maps, and sets up the zero page, bad page and bad page tables.