syscall.sh / csky / 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.20
man pagekexec_load(2)
sourceelixir.bootlin.com

Registers

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

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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