• Youling Tang's avatar
    LoongArch: Add kexec support · 4a03b2ac
    Youling Tang authored
    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: default avatarYouling Tang <tangyouling@loongson.cn>
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    4a03b2ac
Kconfig 13.6 KB