syscall.sh / riscv64 / kexec_load

kexec_load

load a new kernel for later execution

sys_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags)
number104 (0x68)
abicommon
entry pointsys_kexec_load
sinceLinux 4.15
man pagekexec_load(2)
sourceelixir.bootlin.com

Registers

registervalue
a7104, the syscall number
a0unsigned long entry
a1unsigned long nr_segments
a2struct kexec_segment *segments
a3unsigned long flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/kexec_load