arm: print a message if multiple banks of memory are present.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 11 Oct 2012 14:56:59 +0000 (15:56 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Oct 2012 14:56:59 +0000 (15:56 +0100)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/setup.c

index f8cd63a545238976674c6acc2da607ef0d2dfd94..7568968135328ce175888635705e31e4fda47d46 100644 (file)
@@ -114,6 +114,8 @@ static void __init setup_mm(unsigned long dtb_paddr, size_t dtb_size)
      * TODO: only using the first RAM bank for now.  The heaps and the
      * frame table assume RAM is physically contiguous.
      */
+    if ( early_info.mem.nr_banks > 1 )
+        early_printk("WARNING: Only using first bank of memory\n");
     ram_start = early_info.mem.bank[0].start;
     ram_size  = early_info.mem.bank[0].size;
     ram_end = ram_start + ram_size;