Skip to content
Commit 6419f8e9 authored by Shengyu Qu's avatar Shengyu Qu Committed by Leo Yu-Chi Liang
Browse files

riscv: Add SPL_ZERO_MEM_BEFORE_USE implementation



Add the actual support code for SPL_ZERO_MEM_BEFORE_USE and remove
existing Starfive JH7110's L2 LIM clean code, since existing code has
following issues:
 1. Each hart (in the middle of a function call) overwriting its own
    stack and other harts' stacks.
    (data-race and data-corruption)
 2. Lottery winner hart can be doing "board_init_f_init_reserve",
    while other harts are in the middle of zeroing L2 LIM.
    (data-race)

Signed-off-by: default avatarBo Gan <ganboing@gmail.com>
Signed-off-by: default avatarShengyu Qu <wiagn233@outlook.com>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
parent d365f664
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment