Commit 76df6d9e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscalls: Add sys_prctl helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent b50ee4a1
......@@ -226,6 +226,12 @@ static always_inline long sys_arch_prctl(int code, void *addr)
return syscall2(__NR_arch_prctl, code, (unsigned long)addr);
}
static always_inline long sys_prctl(int code, unsigned long arg2, unsigned long arg3,
unsigned long arg4, unsigned long arg5)
{
return syscall5(__NR_prctl, code, arg2, arg3, arg4, arg5);
}
#else /* CONFIG_X86_64 */
# error x86-32 bit mode not yet implemented
#endif /* CONFIG_X86_64 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment