]> git.baikalelectronics.ru Git - uboot.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)
commit80ae592f773aab9a0472f9e846e0a863a6ce5506
treea4ea6e0359eb11afafb7c668dc7c009d2b0c8eb7
parentceee7c8a63023e3152c7065464db4cb8dba29ffa
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