diff options
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools/0007-arm64-kdump-set-up-other-segments.patch')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0007-arm64-kdump-set-up-other-segments.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0007-arm64-kdump-set-up-other-segments.patch b/meta/recipes-kernel/kexec/kexec-tools/0007-arm64-kdump-set-up-other-segments.patch deleted file mode 100644 index 2745466dbe..0000000000 --- a/meta/recipes-kernel/kexec/kexec-tools/0007-arm64-kdump-set-up-other-segments.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 07ad14e12665221d754fde8e47c32ac18c24586a Mon Sep 17 00:00:00 2001 | ||
2 | From: AKASHI Takahiro <takahiro.akashi@linaro.org> | ||
3 | Date: Fri, 31 Jul 2015 20:01:39 +0900 | ||
4 | Subject: [PATCH 7/9] arm64: kdump: set up other segments | ||
5 | |||
6 | We make sure that all the other segments, initrd and device-tree blob, | ||
7 | also be loaded into the reserved memory of crash dump kernel. | ||
8 | |||
9 | Upstream-Status: Backport [https://git.linaro.org/people/takahiro.akashi/kexec-tools.git] | ||
10 | |||
11 | Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> | ||
12 | Signed-off-by: He Zhe <zhe.he@windriver.com> | ||
13 | --- | ||
14 | kexec/arch/arm64/kexec-arm64.c | 5 ++++- | ||
15 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c | ||
18 | index cec4e41..78a0035 100644 | ||
19 | --- a/kexec/arch/arm64/kexec-arm64.c | ||
20 | +++ b/kexec/arch/arm64/kexec-arm64.c | ||
21 | @@ -374,7 +374,10 @@ int arm64_load_other_segments(struct kexec_info *info, | ||
22 | /* Put the other segments after the image. */ | ||
23 | |||
24 | hole_min = image_base + arm64_mem.image_size; | ||
25 | - hole_max = ULONG_MAX; | ||
26 | + if (info->kexec_flags & KEXEC_ON_CRASH) | ||
27 | + hole_max = crash_reserved_mem.end; | ||
28 | + else | ||
29 | + hole_max = ULONG_MAX; | ||
30 | |||
31 | if (arm64_opts.initrd) { | ||
32 | initrd_buf = slurp_file(arm64_opts.initrd, &initrd_size); | ||
33 | -- | ||
34 | 1.9.1 | ||
35 | |||