syscall.sh / parisc / kexec_file_load

kexec_file_load

load a new kernel for later execution

sys_kexec_file_load(int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char *cmdline_ptr, unsigned long flags)
number355 (0x163)
abicommon
entry pointsys_kexec_file_load
sinceLinux 5.4
man pagekexec_file_load(2)
sourceelixir.bootlin.com

Registers

registervalue
r20355, the syscall number
r26int kernel_fd
r25int initrd_fd
r24unsigned long cmdline_len
r23const char *cmdline_ptr
r22unsigned long flags
r28the return value

Then run ble 0x100(%sr2, %r0) to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/kexec_file_load