Blob Blame History Raw
From dbb9a351c5bd0c51b959a9ffc19859bee1b82008 Mon Sep 17 00:00:00 2001
Message-Id: <dbb9a351c5bd0c51b959a9ffc19859bee1b82008.1431592766.git.panand@redhat.com>
In-Reply-To: <1fb6841aa15407dbf371589d7abca7bc2d35815c.1431592766.git.panand@redhat.com>
References: <1fb6841aa15407dbf371589d7abca7bc2d35815c.1431592766.git.panand@redhat.com>
From: AKASHI Takahiro <takahiro.akashi@linaro.org>
Date: Thu, 26 Mar 2015 19:13:44 +0900
Subject: [PATCH 11/17] arm64: pass "mem=" parameter to a crash dump kernel

---
 kexec/arch/arm64/crashdump-arm64.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kexec/arch/arm64/crashdump-arm64.c b/kexec/arch/arm64/crashdump-arm64.c
index 80f5985c5d85..04958418ae82 100644
--- a/kexec/arch/arm64/crashdump-arm64.c
+++ b/kexec/arch/arm64/crashdump-arm64.c
@@ -276,7 +276,9 @@ int load_crashdump_segments(struct kexec_info *info, char **option)
 		crash_reserved_mem.start, crash_reserved_mem.end,
 		-1, 0);
 
-	err = asprintf(option, " elfcorehdr=%#lx@%#lx", bufsz, elfcorehdr);
+	err = asprintf(option, " elfcorehdr=%#lx@%#lx mem=%#llx",
+			bufsz, elfcorehdr,
+			crash_reserved_mem.end - crash_reserved_mem.start + 1);
 
 	if (err == -1)
 		return err;
-- 
2.1.0