From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cerKs-0001xJ-Op for kexec@lists.infradead.org; Fri, 17 Feb 2017 22:49:08 +0000 From: Eric DeVolder Subject: [PATCH v5 09/11] crashdump/s390: Add get_crash_kernel_load_range() function Date: Fri, 17 Feb 2017 16:47:23 -0600 Message-Id: <1487371645-8299-10-git-send-email-eric.devolder@oracle.com> In-Reply-To: <1487371645-8299-1-git-send-email-eric.devolder@oracle.com> References: <1487371645-8299-1-git-send-email-eric.devolder@oracle.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org, horms@verge.net.au, andrew.cooper3@citrix.com Cc: daniel.kiper@oracle.com, konrad.wilk@oracle.com From: Daniel Kiper Implement get_crash_kernel_load_range() in support of print crash kernel region size option. Signed-off-by: Daniel Kiper Signed-off-by: Eric DeVolder Reviewed-by: Daniel Kiper --- v5: Incorporated feedback: - no changes for this arch v4: Incorporated feedback: - no changes for this arch v3: Incorporated feedback: - changes for coding convention and formatting - restructured to introduce get_crash_kernel_load_range() for each architecture, and then a single function in kexec/kexec.c to call the per-architecture get_crash_kernel_load_range() and print the result. - print_crashkernel_region_size() changed to get_crash_kernel_load_range() v2: Incorporated feedback: - no changes for this arch v1: Posted to kexec-tools mailing list --- kexec/arch/s390/kexec-s390.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kexec/arch/s390/kexec-s390.c b/kexec/arch/s390/kexec-s390.c index 074575e..f863483 100644 --- a/kexec/arch/s390/kexec-s390.c +++ b/kexec/arch/s390/kexec-s390.c @@ -262,3 +262,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.7.4 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec