RISC-V: Add kexec support

This patch adds support for kexec on RISC-V. On SMP systems it depends
on HOTPLUG_CPU in order to be able to bring up all harts after kexec.
It also needs a recent OpenSBI version that supports the HSM extension.
I tested it on riscv64 QEMU on both an smp and a non-smp system.

Signed-off-by: Nick Kossifidis <mick@ics.forth.gr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
Nick Kossifidis 2021-04-19 03:55:36 +03:00 • committed by Palmer Dabbelt
commit fba8a8674f
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
5 changed files with 412 additions and 0 deletions