]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Add preparatory infrastructure for kexec_file
authorYouling Tang <tangyouling@kylinos.cn>
Thu, 2 Oct 2025 14:39:07 +0000 (22:39 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 2 Oct 2025 14:39:07 +0000 (22:39 +0800)
commitd162feec6b6e7ed97986118450812fdd7e9ba202
tree100e71ae7e86e079db5c4562d8fb476c7d038d8a
parent30ade4fef7ad95ab266a74a2f69544b02af7299d
LoongArch: Add preparatory infrastructure for kexec_file

Add some preparatory infrastructure:
- Add command line processing.
- Add support for loading other segments.
- Other minor modifications.

This initrd will be passed to the second kernel via the command line
'initrd=start,size'.

The 'kexec_file' command line parameter indicates that the kernel is
loaded via kexec_file.

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig
arch/loongarch/include/asm/kexec.h
arch/loongarch/kernel/Makefile
arch/loongarch/kernel/machine_kexec.c
arch/loongarch/kernel/machine_kexec_file.c [new file with mode: 0644]