summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/e820.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-01-28 22:27:28 +0100
committerIngo Molnar <mingo@kernel.org>2017-01-28 22:55:25 +0100
commit1a1270349a0710162a160eef4f2e360845e0f47d (patch)
tree5c7cef4300145a06977b2a925c95d06bca8a8bcb /arch/x86/kernel/e820.c
parent9a02fd0f1efbace5939bc34c4080a175e8112e8c (diff)
downloadlinux-1a1270349a0710162a160eef4f2e360845e0f47d.tar.bz2
x86/boot/e820: Document e820__reserve_setup_data()
Also clean it up a bit. No change in functionality. Cc: Alex Thorlton <athorlton@sgi.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Huang, Ying <ying.huang@intel.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Juergen Gross <jgross@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul Jackson <pj@sgi.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J. Wysocki <rjw@sisk.pl> Cc: Tejun Heo <tj@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/e820.c')
-rw-r--r--arch/x86/kernel/e820.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 7dc430c03acb..114625890337 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -922,7 +922,12 @@ static int __init parse_memmap_opt(char *str)
}
early_param("memmap", parse_memmap_opt);
-void __init e820_reserve_setup_data(void)
+/*
+ * Reserve all entries from the bootloader's extensible data nodes list,
+ * because if present we are going to use it later on to fetch e820
+ * entries from it:
+ */
+void __init e820__reserve_setup_data(void)
{
struct setup_data *data;
u64 pa_data;
@@ -939,8 +944,10 @@ void __init e820_reserve_setup_data(void)
}
e820__update_table(e820_table);
+
memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware));
- printk(KERN_INFO "extended physical RAM map:\n");
+
+ pr_info("extended physical RAM map:\n");
e820__print_table("reserve setup_data");
}