RISC-V: Add purgatory
authorLi Zhengyu <lizhengyu3@huawei.com>
Fri, 8 Apr 2022 10:09:13 +0000 (18:09 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 19 May 2022 19:18:59 +0000 (12:18 -0700)
commit736e30af583fb6e0e2b8211b894ff99dea0f1ee7
tree5c1b4d2f0a33ab0d762447b2ce7375c5eca194ec
parent8acea455fafaf2620b247de6c00774828b618a82
RISC-V: Add purgatory

This patch adds purgatory, the name and concept have been taken
from kexec-tools. Purgatory runs between two kernels, and do
verify sha256 hash to ensure the kernel to jump to is fine and
has not been corrupted after loading. Makefile is modified based
on x86 platform.

Signed-off-by: Li Zhengyu <lizhengyu3@huawei.com>
Link: https://lore.kernel.org/r/20220408100914.150110-6-lizhengyu3@huawei.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kbuild
arch/riscv/Kconfig
arch/riscv/purgatory/.gitignore [new file with mode: 0644]
arch/riscv/purgatory/Makefile [new file with mode: 0644]
arch/riscv/purgatory/entry.S [new file with mode: 0644]
arch/riscv/purgatory/purgatory.c [new file with mode: 0644]