Blame SOURCES/kexec-tools-2.0.8-arm64-pass-mem-parameter-to-a-crash-dump-kernel.patch
|
|
a6d77e |
From dbb9a351c5bd0c51b959a9ffc19859bee1b82008 Mon Sep 17 00:00:00 2001
|
|
|
a6d77e |
Message-Id: <dbb9a351c5bd0c51b959a9ffc19859bee1b82008.1431592766.git.panand@redhat.com>
|
|
|
a6d77e |
In-Reply-To: <1fb6841aa15407dbf371589d7abca7bc2d35815c.1431592766.git.panand@redhat.com>
|
|
|
a6d77e |
References: <1fb6841aa15407dbf371589d7abca7bc2d35815c.1431592766.git.panand@redhat.com>
|
|
|
a6d77e |
From: AKASHI Takahiro <takahiro.akashi@linaro.org>
|
|
|
a6d77e |
Date: Thu, 26 Mar 2015 19:13:44 +0900
|
|
|
a6d77e |
Subject: [PATCH 11/17] arm64: pass "mem=" parameter to a crash dump kernel
|
|
|
a6d77e |
|
|
|
a6d77e |
---
|
|
|
a6d77e |
kexec/arch/arm64/crashdump-arm64.c | 4 +++-
|
|
|
a6d77e |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
a6d77e |
|
|
|
a6d77e |
diff --git a/kexec/arch/arm64/crashdump-arm64.c b/kexec/arch/arm64/crashdump-arm64.c
|
|
|
a6d77e |
index 80f5985c5d85..04958418ae82 100644
|
|
|
a6d77e |
--- a/kexec/arch/arm64/crashdump-arm64.c
|
|
|
a6d77e |
+++ b/kexec/arch/arm64/crashdump-arm64.c
|
|
|
a6d77e |
@@ -276,7 +276,9 @@ int load_crashdump_segments(struct kexec_info *info, char **option)
|
|
|
a6d77e |
crash_reserved_mem.start, crash_reserved_mem.end,
|
|
|
a6d77e |
-1, 0);
|
|
|
a6d77e |
|
|
|
a6d77e |
- err = asprintf(option, " elfcorehdr=%#lx@%#lx", bufsz, elfcorehdr);
|
|
|
a6d77e |
+ err = asprintf(option, " elfcorehdr=%#lx@%#lx mem=%#llx",
|
|
|
a6d77e |
+ bufsz, elfcorehdr,
|
|
|
a6d77e |
+ crash_reserved_mem.end - crash_reserved_mem.start + 1);
|
|
|
a6d77e |
|
|
|
a6d77e |
if (err == -1)
|
|
|
a6d77e |
return err;
|
|
|
a6d77e |
--
|
|
|
a6d77e |
2.1.0
|
|
|
a6d77e |
|