riscvarchive / riscv-linux

RISC-V Linux Port
606 stars 210 forks source link

Fix smp #41

Closed sashimi-yzh closed 8 years ago

aswaterman commented 8 years ago

plic_context actually should be a pointer whose value comes from the boot loader/SBI. The code's just incomplete, so the pointer isn't ever initialized.

sashimi-yzh commented 8 years ago

Oh, I see.

a0u commented 8 years ago

Commit 0b60c0bfabaab8de54c95a9218b1478129f76a47 (" kernel,smpboot.c: fix CPU booting state for APs") has been applied to master as 030e8173dd9379de5c2f065ba73e734ff7647ef8.

Since the PLIC driver has been rewritten in sifive/riscv-linux and is awaiting a merge, I am omitting the second commit of this PR.