aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-06-30 01:57:04 -0400
committerIngo Molnar <mingo@kernel.org>2015-06-30 01:57:04 -0400
commitdc5fb575df9cdd34ac12bf7a814c9beae0a7ca9b (patch)
treecd2febb026bab11526f38b266a64f5086330d793
parentdb52ef74b35dcb91fd154fa52c618bdd1b90e28e (diff)
parentf2af7d25b4aa5b01203cc76e7530ea7fd18864a0 (diff)
Merge branch 'x86/boot' into x86/urgent
Merge branch that got ready. Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--Documentation/x86/boot.txt2
-rw-r--r--arch/x86/kernel/setup.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/Documentation/x86/boot.txt b/Documentation/x86/boot.txt
index 7c1f9fad6674..9da6f3512249 100644
--- a/Documentation/x86/boot.txt
+++ b/Documentation/x86/boot.txt
@@ -406,7 +406,7 @@ Protocol: 2.00+
406 - If 0, the protected-mode code is loaded at 0x10000. 406 - If 0, the protected-mode code is loaded at 0x10000.
407 - If 1, the protected-mode code is loaded at 0x100000. 407 - If 1, the protected-mode code is loaded at 0x100000.
408 408
409 Bit 1 (kernel internal): ALSR_FLAG 409 Bit 1 (kernel internal): KASLR_FLAG
410 - Used internally by the compressed kernel to communicate 410 - Used internally by the compressed kernel to communicate
411 KASLR status to kernel proper. 411 KASLR status to kernel proper.
412 If 1, KASLR enabled. 412 If 1, KASLR enabled.
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 265a6fdea8b7..4883c0a990a5 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -461,19 +461,18 @@ static void __init e820_reserve_setup_data(void)
461{ 461{
462 struct setup_data *data; 462 struct setup_data *data;
463 u64 pa_data; 463 u64 pa_data;
464 int found = 0;
465 464
466 pa_data = boot_params.hdr.setup_data; 465 pa_data = boot_params.hdr.setup_data;
466 if (!pa_data)
467 return;
468
467 while (pa_data) { 469 while (pa_data) {
468 data = early_memremap(pa_data, sizeof(*data)); 470 data = early_memremap(pa_data, sizeof(*data));
469 e820_update_range(pa_data, sizeof(*data)+data->len, 471 e820_update_range(pa_data, sizeof(*data)+data->len,
470 E820_RAM, E820_RESERVED_KERN); 472 E820_RAM, E820_RESERVED_KERN);
471 found = 1;
472 pa_data = data->next; 473 pa_data = data->next;
473 early_memunmap(data, sizeof(*data)); 474 early_memunmap(data, sizeof(*data));
474 } 475 }
475 if (!found)
476 return;
477 476
478 sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map); 477 sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
479 memcpy(&e820_saved, &e820, sizeof(struct e820map)); 478 memcpy(&e820_saved, &e820, sizeof(struct e820map));