boot_init_secondary()
init_secondary_helper()
thread_init_per_cpu()
- Set
mtvec
/stvec
tothread_trap_vect()
. - Set
mscratch
/sscratch
to0
to indicate that the following traps are from kernel. init_sec_mon()
- Do nothing as RISC-V doesn't have a secure monitor.
- Secure monitor is OpenSBI.
boot_secondary_init_intc()
plic_hart_init()
- Do nothing.
sbi_mpxy_setup_shmem()
- Allocates 4KB MPXY shared memory (4KB aligned).
- Call
sbi_mpxy_set_shmem
SBI call to set up the allocated MPXY shared memory for the current core. This will invoke OpenSBI’ssbi_mpxy_set_shmem()
to save the shared memory address and size into current harttdomain
’smpxy_state
.
boot_init_secondary()c
Loading...