]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/head64.c
x86: Use memblock to replace early_res
[net-next-2.6.git] / arch / x86 / kernel / head64.c
index 7147143fd614e429392741ae13ce5577c7be5364..8ee930fdeeb96735ae02e98f86d05561e8bf5933 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/percpu.h>
 #include <linux/start_kernel.h>
 #include <linux/io.h>
+#include <linux/memblock.h>
 
 #include <asm/processor.h>
 #include <asm/proto.h>
@@ -98,6 +99,8 @@ void __init x86_64_start_reservations(char *real_mode_data)
 {
        copy_bootdata(__va(real_mode_data));
 
+       memblock_init();
+
        reserve_early(__pa_symbol(&_text), __pa_symbol(&__bss_stop), "TEXT DATA BSS");
 
 #ifdef CONFIG_BLK_DEV_INITRD