]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V
authorYuri Zaporozhets <yuriz@qrv-systems.net>
Mon, 11 Nov 2024 19:24:04 +0000 (20:24 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 27 Nov 2024 11:31:10 +0000 (19:31 +0800)
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>
common/spl/Kconfig

index 045fcac10a5f1f123882861a5e0c8672be2dd69e..240543c9c7e7840044f2fcd058f6ce5d3b8d94f5 100644 (file)
@@ -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