From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxMY0-0000t9-QD for kexec@lists.infradead.org; Thu, 20 Oct 2016 23:14:53 +0000 From: Sameer Goel Subject: [PATCH] kexec: Increase the upper limit for RAM segments Date: Thu, 20 Oct 2016 17:14:28 -0600 Message-Id: <1477005268-26943-1-git-send-email-sgoel@codeaurora.org> 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: geoff@infradead.org Cc: Sameer Goel , kexec@lists.infradead.org Change the current hardcoded values to 64 from 16. Signed-off-by: Sameer Goel --- kexec/arch/arm64/kexec-arm64.h | 2 +- kexec/kexec-syscall.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kexec/arch/arm64/kexec-arm64.h b/kexec/arch/arm64/kexec-arm64.h index bac62f8..bd4c20e 100644 --- a/kexec/arch/arm64/kexec-arm64.h +++ b/kexec/arch/arm64/kexec-arm64.h @@ -11,7 +11,7 @@ #include "image-header.h" #include "kexec.h" -#define KEXEC_SEGMENT_MAX 16 +#define KEXEC_SEGMENT_MAX 64 #define BOOT_BLOCK_VERSION 17 #define BOOT_BLOCK_LAST_COMP_VERSION 16 diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h index c0d0bea..f84c937 100644 --- a/kexec/kexec-syscall.h +++ b/kexec/kexec-syscall.h @@ -115,7 +115,7 @@ static inline long kexec_file_load(int kernel_fd, int initrd_fd, #define KEXEC_ARCH_MIPS ( 8 << 16) #define KEXEC_ARCH_CRIS (76 << 16) -#define KEXEC_MAX_SEGMENTS 16 +#define KEXEC_MAX_SEGMENTS 64 #ifdef __i386__ #define KEXEC_ARCH_NATIVE KEXEC_ARCH_386 -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec