diff options
author | Youling Tang <tangyouling@loongson.cn> | 2022-09-28 10:28:23 +0800 |
---|---|---|
committer | Simon Horman <horms@kernel.org> | 2022-10-10 13:34:54 +0200 |
commit | 1c8bf2dc0127b06f97a7973488c7f8cf9a5f7c19 (patch) | |
tree | ba9628df718ee3459e066274c59aa0a032790c42 /kexec/Makefile | |
parent | dceb1d8926e609ccf8f00e92001226888529283b (diff) | |
download | kexec-tools-1c8bf2dc0127b06f97a7973488c7f8cf9a5f7c19.tar.gz |
LoongArch: Add kexec/kdump support
Add the 64-bit processing support of the LoongArch architecture. For the time
being, the quick restart function(kexec) is supported. That is, the "kexec -l"
and "kexec -e" commands can be used normally.
At the same time, the crash dump function also supports, "kexec -p" operation
can be successfully performed, and the vmcore file can be generated.
I tested this on LoongArch 3A5000 machine and works as expected,
kexec:
$ sudo kexec -l /boot/vmlinux --reuse-cmdline
$ sudo kexec -e
kdump:
$ sudo kexec -p /boot/vmlinux-kdump --reuse-cmdline --append="nr_cpus=1"
# echo c > /proc/sysrq_trigger
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Simon Horman <horms@kernel.org>
Diffstat (limited to 'kexec/Makefile')
-rw-r--r-- | kexec/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/Makefile b/kexec/Makefile index e69e309..8a52e8d 100644 --- a/kexec/Makefile +++ b/kexec/Makefile @@ -92,6 +92,7 @@ include $(srcdir)/kexec/arch/s390/Makefile include $(srcdir)/kexec/arch/sh/Makefile include $(srcdir)/kexec/arch/x86_64/Makefile include $(srcdir)/kexec/arch/hppa/Makefile +include $(srcdir)/kexec/arch/loongarch/Makefile KEXEC_SRCS += $($(ARCH)_KEXEC_SRCS) |