syscall.sh / ppc64 / swapcontext

swapcontext

sys_swapcontext(struct ucontext *old_ctx, struct ucontext *new_ctx, long ctx_size)
number249 (0xf9)
abinospu
entry pointsys_swapcontext
sinceLinux 5.0
sourceelixir.bootlin.com

Registers

registervalue
r0249, the syscall number
r3struct ucontext *old_ctx
r4struct ucontext *new_ctx
r5long ctx_size
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc64/swapcontext