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/kexec-multiboot-x86.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kexec/arch/i386/kexec-multiboot-x86.c') diff --git a/kexec/arch/i386/kexec-multiboot-x86.c b/kexec/arch/i386/kexec-multiboot-x86.c index 0efefc9..9414bfe 100644 --- a/kexec/arch/i386/kexec-multiboot-x86.c +++ b/kexec/arch/i386/kexec-multiboot-x86.c @@ -246,7 +246,8 @@ int multiboot_x86_load(int argc, char **argv, const char *buf, off_t len, mbi->boot_loader_name = sizeof(*mbi) + command_line_len; /* Memory map */ - if ((get_memory_ranges(&range, &ranges) < 0) || ranges == 0) { + if ((get_memory_ranges(&range, &ranges, info->kexec_flags) < 0) + || ranges == 0) { fprintf(stderr, "Cannot get memory information\n"); return -1; } -- cgit