diff options
author | Youling Tang <tangyouling@loongson.cn> | 2022-10-12 11:36:19 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2022-10-12 11:36:19 +0300 |
commit | 4a03b2ac06a5bcae29371866d9d11f5bfd4c9188 (patch) | |
tree | b4be8ab432c4fd77b484dbc4445de8a609444197 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2d2c395217d2233e752dbddcae3c5d94050b48c1 (diff) | |
download | linux-4a03b2ac06a5bcae29371866d9d11f5bfd4c9188.tar.xz |
LoongArch: Add kexec support
Add three new files, kexec.h, machine_kexec.c and relocate_kernel.S to
the LoongArch architecture, so as to add support for the kexec re-boot
mechanism (CONFIG_KEXEC) on LoongArch platforms.
Kexec supports loading vmlinux.elf in ELF format and vmlinux.efi in PE
format.
I tested kexec on LoongArch machines (Loongson-3A5000) and it works as
expected:
$ sudo kexec -l /boot/vmlinux.efi --reuse-cmdline
$ sudo kexec -e
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions