arch_prctl on ia32
set architecture-specific thread state
sys_arch_prctl(int option, unsigned long arg2)
| number | 384 (0x180) |
|---|---|
| abi | i386 |
| entry point | sys_arch_prctl |
| since | Linux 4.12 |
| man page | arch_prctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 384, the syscall number |
ebx | int option |
ecx | unsigned long arg2 |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/arch_prctl