Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / setup.c
index 95a32746fbf97d8a077acd9226ebb62950dab9c7..85268f8eadf667c6034c06882ed661cb7d03e4a8 100644 (file)
@@ -769,6 +769,7 @@ void __init setup_arch(char **cmdline_p)
 
        x86_init.oem.arch_setup();
 
+       iomem_resource.end = (1ULL << boot_cpu_data.x86_phys_bits) - 1;
        setup_memory_map();
        parse_setup_data();
        /* update the e820_saved too */