riscv-linux中的多核启动流程

文章目录

  • 1 多核启动问题
    • 1.1 kernel
    • 1.2 opensbi
    • 1.2.1 热启动CPU等待被激活
    • 1.2.2 激活CPU

1 多核启动问题

1.1 kernel

linux-5.15.112

linux 内核输出的opensbi日志和多核启动日志:

......
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10000
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
.....
[    1.760232] EFI services will not be available.
[    1.886410] smp: Bringing up secondary CPUs ...
[    3.439087] CPU1

你可能感兴趣的:(risc-v,linux)