commit | 2612080e9ce7cf6a0884804566516d32b85c3fe9 | [log] [tgz] |
---|---|---|
author | Green Wan <green.wan@sifive.com> | Sun May 02 23:23:04 2021 -0700 |
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | Wed May 05 16:11:22 2021 +0800 |
tree | a4ea6e0359eb11afafb7c668dc7c009d2b0c8eb7 | |
parent | 62228e7453c2c6def0c539a0270edbed33947db4 [diff] |
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>