Merge branch 'x86/boot' into x86/mm, to avoid conflict
There's a conflict between ongoing level-5 paging support and the E820 rewrite. Since the E820 rewrite is essentially ready, merge it into x86/mm to reduce tree conflicts. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#include <asm/fixmap.h>
|
||||
#include <asm/proto.h>
|
||||
#include <asm/setup.h>
|
||||
#include <asm/e820.h>
|
||||
#include <asm/e820/api.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#include "../realmode/rm/wakeup.h"
|
||||
@@ -68,9 +68,9 @@ void __init tboot_probe(void)
|
||||
* also verify that it is mapped as we expect it before calling
|
||||
* set_fixmap(), to reduce chance of garbage value causing crash
|
||||
*/
|
||||
if (!e820_any_mapped(boot_params.tboot_addr,
|
||||
boot_params.tboot_addr, E820_RESERVED)) {
|
||||
pr_warning("non-0 tboot_addr but it is not of type E820_RESERVED\n");
|
||||
if (!e820__mapped_any(boot_params.tboot_addr,
|
||||
boot_params.tboot_addr, E820_TYPE_RESERVED)) {
|
||||
pr_warning("non-0 tboot_addr but it is not of type E820_TYPE_RESERVED\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -192,12 +192,12 @@ static int tboot_setup_sleep(void)
|
||||
|
||||
tboot->num_mac_regions = 0;
|
||||
|
||||
for (i = 0; i < e820->nr_map; i++) {
|
||||
if ((e820->map[i].type != E820_RAM)
|
||||
&& (e820->map[i].type != E820_RESERVED_KERN))
|
||||
for (i = 0; i < e820_table->nr_entries; i++) {
|
||||
if ((e820_table->entries[i].type != E820_TYPE_RAM)
|
||||
&& (e820_table->entries[i].type != E820_TYPE_RESERVED_KERN))
|
||||
continue;
|
||||
|
||||
add_mac_region(e820->map[i].addr, e820->map[i].size);
|
||||
add_mac_region(e820_table->entries[i].addr, e820_table->entries[i].size);
|
||||
}
|
||||
|
||||
tboot->acpi_sinfo.kernel_s3_resume_vector =
|
||||
|
Reference in New Issue
Block a user