so other path that will override memory_setup or
machine_specific_memory_setup could have e820_saved too.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
                e820_add_region(HIGH_MEMORY, mem_size << 10, E820_RAM);
        }
 
-       memcpy(&e820_saved, &e820, sizeof(struct e820map));
-
        /* In case someone cares... */
        return who;
 }
 
 void __init setup_memory_map(void)
 {
+       char *who;
+
+       who = memory_setup();
+       memcpy(&e820_saved, &e820, sizeof(struct e820map));
        printk(KERN_INFO "BIOS-provided physical RAM map:\n");
-       e820_print_map(memory_setup());
+       e820_print_map(who);
 }
 
 #ifdef CONFIG_X86_64