34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From 05ae4fb2e354e0f640d77957ee4c7dcb0eddc5f3 Mon Sep 17 00:00:00 2001
|
||
|
From: Daniel Kiper <daniel.kiper@oracle.com>
|
||
|
Date: Fri, 17 Feb 2017 16:47:24 -0600
|
||
|
Subject: [PATCH 18/45] crashdump/sh: Add get_crash_kernel_load_range()
|
||
|
function
|
||
|
|
||
|
Implement get_crash_kernel_load_range() in support of
|
||
|
print crash kernel region size option.
|
||
|
|
||
|
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||
|
Signed-off-by: Eric DeVolder <eric.devolder@oracle.com>
|
||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||
|
Signed-off-by: Simon Horman <horms@verge.net.au>
|
||
|
---
|
||
|
kexec/arch/sh/crashdump-sh.c | 5 +++++
|
||
|
1 file changed, 5 insertions(+)
|
||
|
|
||
|
diff --git a/kexec/arch/sh/crashdump-sh.c b/kexec/arch/sh/crashdump-sh.c
|
||
|
index 9e6af6bf54bf..aa25dea353c3 100644
|
||
|
--- a/kexec/arch/sh/crashdump-sh.c
|
||
|
+++ b/kexec/arch/sh/crashdump-sh.c
|
||
|
@@ -178,3 +178,8 @@ int is_crashkernel_mem_reserved(void)
|
||
|
return parse_iomem_single("Crash kernel\n", &start, &end) == 0 ?
|
||
|
(start != end) : 0;
|
||
|
}
|
||
|
+
|
||
|
+int get_crash_kernel_load_range(uint64_t *start, uint64_t *end)
|
||
|
+{
|
||
|
+ return parse_iomem_single("Crash kernel\n", start, end);
|
||
|
+}
|
||
|
--
|
||
|
2.13.0
|
||
|
|