Commit 5fd13e04 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscall: Add __NR_rt_sigreturn

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 0259dd01
......@@ -12,6 +12,7 @@
#define __NR_mprotect 10
#define __NR_munmap 11
#define __NR_brk 12
#define __NR_rt_sigreturn 15
#define __NR_mincore 27
#define __NR_dup 32
#define __NR_dup2 33
......
......@@ -156,6 +156,15 @@ static long sys_read(unsigned long fd, void *buf, unsigned long count)
return syscall3(__NR_read, fd, (unsigned long)buf, count);
}
/*
* Note this call expects a signal frame on stack
* (regs->sp) so be very carefull here!
*/
static long sys_rt_sigreturn(void)
{
return syscall0(__NR_rt_sigreturn);
}
#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