mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
riscv: Kconfig: Add SPL_ZERO_MEM_BEFORE_USE
Add a Kconfig item to allow SPL to clear stack/GD/malloc area before using them. Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
7d79bed00c
commit
d365f6646a
1 changed files with 8 additions and 0 deletions
|
@ -64,6 +64,14 @@ config SPL_SYS_DCACHE_OFF
|
|||
help
|
||||
Do not enable data cache in SPL.
|
||||
|
||||
config SPL_ZERO_MEM_BEFORE_USE
|
||||
bool "Zero memory before use"
|
||||
depends on SPL
|
||||
default n
|
||||
help
|
||||
Zero stack/GD/malloc area in SPL before using them, this is needed for
|
||||
Sifive core devices that uses L2 cache to store SPL.
|
||||
|
||||
# board-specific options below
|
||||
source "board/AndesTech/ae350/Kconfig"
|
||||
source "board/emulation/qemu-riscv/Kconfig"
|
||||
|
|
Loading…
Reference in a new issue