From 1ac3ddd1d4a3d8cb7af5fd02c1ffb85893c4ea50 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Thu, 4 Aug 2005 17:46:07 +0530 Subject: crashdump backup region handling o This patch adds support for reserving space for backup region. Also adds code in purgatory to copy the first 640K to backup region. o Moved kexec_flags inside kexec_info structure. Signed-off-by: Vivek Goyal Signed-off-by: Maneesh Soni --- kexec/arch/i386/x86-linux-setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kexec/arch/i386/x86-linux-setup.c') diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c index 3ab4c7f..14acf8e 100644 --- a/kexec/arch/i386/x86-linux-setup.c +++ b/kexec/arch/i386/x86-linux-setup.c @@ -94,7 +94,8 @@ void setup_linux_bootloader_parameters( cmdline_ptr[cmdline_len - 1] = '\0'; } -void setup_linux_system_parameters(struct x86_linux_param_header *real_mode) +void setup_linux_system_parameters(struct x86_linux_param_header *real_mode, + unsigned long kexec_flags) { /* Fill in information the BIOS would usually provide */ struct memory_range *range; @@ -135,7 +136,7 @@ void setup_linux_system_parameters(struct x86_linux_param_header *real_mode) real_mode->aux_device_info = 0; /* Fill in the memory info */ - if ((get_memory_ranges(&range, &ranges) < 0) || ranges == 0) { + if ((get_memory_ranges(&range, &ranges, kexec_flags) < 0) || ranges == 0) { die("Cannot get memory information\n"); } if (ranges > E820MAX) { -- cgit