[PATCH v2 1/2] kexec: __NR_kexec_file_load is set to undefined on LoongArch

Simon Horman horms at kernel.org
Wed Mar 8 04:50:38 PST 2023


On Sat, Mar 04, 2023 at 11:09:10AM +0800, Youling Tang wrote:
> The initial reason is that after the merger of 29fe5067ed07 ("kexec: make
> -a the default"), kexec cannot be used on LoongArch architectures. We need
> to add "-c" for normal use. The current kexec_file_load system call is not
> implemented in architectures such as LoongArch, so it needs to pass kexec_load.
> So we need to set __NR_kexec_file_load to undefined in unsupported architectures.
> This will return EFALLBACK via is_kexec_file_load_implemented, and then via
> kexec_load.
> 
> Signed-off-by: Youling Tang <tangyouling at loongson.cn>

Thanks, applied.



More information about the kexec mailing list