summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Zaporozhets <yuriz@qrv-systems.net>2024-11-11 20:24:04 +0100
committerLeo Yu-Chi Liang <ycliang@andestech.com>2024-11-27 19:31:10 +0800
commit91bc909d317cfef08cc263e406e747e40ad4ab6c (patch)
tree068aa644efd3bdfbb70e4660696ed14448204f12
parent3881c6b90350b0b04085ad46ef64989b43967eef (diff)
spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V
If BIOSEMU is compiled for RISC-V (SiFive Unmatched board) and the function dm_pci_run_vga_bios() is executed, U-Boot stops with error message saying that the SPL malloc pool is too small. So increase the default pool size when both BIOSEMU and RISCV parameters are set. Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r--common/spl/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 045fcac10a5..240543c9c7e 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -462,6 +462,7 @@ config SPL_CUSTOM_SYS_MALLOC_ADDR
config SPL_SYS_MALLOC_SIZE
hex "Size of the SPL malloc pool"
depends on SPL_SYS_MALLOC
+ default 0x180000 if BIOSEMU && RISCV
default 0x100000
config SPL_READ_ONLY