mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
This patch adds support for kexec_file on RISC-V. I tested it on riscv64
QEMU with busybear-linux and single core along with the OpenSBI firmware
fw_jump.bin for generic platform.
On SMP system, it depends on CONFIG_{HOTPLUG_CPU, RISCV_SBI} to
resume/stop hart through OpenSBI firmware, it also needs a OpenSBI that
support the HSM extension.
Signed-off-by: Liao Chang <[email protected]>
Signed-off-by: Li Zhengyu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[Palmer: Make 64-bit only]
Signed-off-by: Palmer Dabbelt <[email protected]>
15 lines
335 B
C
15 lines
335 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* kexec_file for riscv, use vmlinux as the dump-capture kernel image.
|
|
*
|
|
* Copyright (C) 2021 Huawei Technologies Co, Ltd.
|
|
*
|
|
* Author: Liao Chang ([email protected])
|
|
*/
|
|
#include <linux/kexec.h>
|
|
|
|
const struct kexec_file_ops * const kexec_file_loaders[] = {
|
|
&elf_kexec_ops,
|
|
NULL
|
|
};
|