]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: cpu: Add callback to init each core
authorGreen Wan <green.wan@sifive.com>
Mon, 3 May 2021 06:23:04 +0000 (23:23 -0700)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 5 May 2021 08:11:22 +0000 (16:11 +0800)
commitedd9ad81947d2136c71657be88d6cc35a56bd22f
treea4ea6e0359eb11afafb7c668dc7c009d2b0c8eb7
parent8ddaf943589756442bba21e5be645cd47526d82b
riscv: cpu: Add callback to init each core

Add a callback harts_early_init() to start.S to allow different riscv
hart perform setup code for each hart as early as possible. Since all
the harts enter the callback, they must be able to run the same
setup.

Signed-off-by: Green Wan <green.wan@sifive.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/cpu/cpu.c
arch/riscv/cpu/start.S