syscall.sh / ppc / swapcontext
swapcontext
sys_swapcontext(struct ucontext *old_ctx, struct ucontext *new_ctx, long ctx_size)
| number | 249 (0xf9) |
|---|---|
| abi | nospu |
| entry point | sys_swapcontext |
| since | Linux 5.0 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 249, the syscall number |
r3 | struct ucontext *old_ctx |
r4 | struct ucontext *new_ctx |
r5 | long ctx_size |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- ppc64 249
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/swapcontext