From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Edwards Date: Tue, 11 Apr 2017 19:06:29 -0400 Subject: [U-Boot] [PATCH 2/2] mips: qemu-mips: Expand malloc pool to fit CONFIG_SYS_BOOTPARAMS_LEN In-Reply-To: <1491951989-15837-1-git-send-email-kyleedwardsny@gmail.com> References: <1491951989-15837-1-git-send-email-kyleedwardsny@gmail.com> Message-ID: <1491951989-15837-3-git-send-email-kyleedwardsny@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Before this patch, CONFIG_SYS_BOOTPARAMS_LEN was the same size as CONFIG_SYS_MALLOC_LEN. So, if malloc() had previously been called, and initr_malloc_bootparams() was called, it would fail with an out-of- memory error. This patch fixes this issue by expanding the malloc pool to 256KB. Signed-off-by: Kyle Edwards Cc: Daniel Schwierzeck --- include/configs/qemu-mips.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/qemu-mips.h b/include/configs/qemu-mips.h index b67d413..59a793b 100644 --- a/include/configs/qemu-mips.h +++ b/include/configs/qemu-mips.h @@ -80,7 +80,7 @@ /* max number of command args */ #define CONFIG_SYS_MAXARGS 16 -#define CONFIG_SYS_MALLOC_LEN 128*1024 +#define CONFIG_SYS_MALLOC_LEN (256 << 10) #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024 -- 2.7.4