summaryrefslogtreecommitdiffstats
path: root/arch/arc/mm
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-01-23 13:40:26 +0100
committerVineet Gupta <vgupta@synopsys.com>2015-10-28 11:43:42 +0100
commitf759ee57b205223e98fdc97e26cbef305b8048e1 (patch)
tree1ceaee0601c6eac98954b1f62a57d69af51c43f3 /arch/arc/mm
parentARC: boot: Non Master cpus only need to call EARLY_CPU_SETUP once (diff)
downloadlinux-f759ee57b205223e98fdc97e26cbef305b8048e1.tar.xz
linux-f759ee57b205223e98fdc97e26cbef305b8048e1.zip
ARC: Ensure DT mem base is same as what kernel is built with
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/mm')
-rw-r--r--arch/arc/mm/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index d44eedd8c322..5121b9b16ba8 100644
--- a/arch/arc/mm/init.c
+++ b/arch/arc/mm/init.c
@@ -43,6 +43,8 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
{
arc_mem_sz = size & PAGE_MASK;
pr_info("Memory size set via devicetree %ldM\n", TO_MB(arc_mem_sz));
+
+ BUG_ON(base != CONFIG_LINUX_LINK_BASE);
}
#ifdef CONFIG_BLK_DEV_INITRD