]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
mips: qemu-mips/64: Expand malloc pool for CONFIG_SYS_BOOTPARAMS_LEN
authorKyle Edwards <kyleedwardsny@gmail.com>
Thu, 13 Apr 2017 02:42:32 +0000 (22:42 -0400)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 21 Apr 2017 11:54:47 +0000 (13:54 +0200)
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 <kyleedwardsny@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
include/configs/qemu-mips.h
include/configs/qemu-mips64.h

index b67d413f126da2f21958a17910a6cfd2023f2653..59a793babed3c39020281daa6e28e9f71ec60939 100644 (file)
@@ -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
 
index 4856087718c5e5004e07ecdc1ceef88951fb8d6b..28b791acdd13cf26d55d68d47cdacbe2f52780c7 100644 (file)
@@ -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