Commit 98cf8f1a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscall: Add getpid syscall

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 50d6423b
......@@ -161,6 +161,11 @@ static always_inline long sys_exit(unsigned long error_code)
return syscall1(__NR_exit, error_code);
}
static always_inline unsigned long sys_getpid(void)
{
return syscall0(__NR_getpid);
}
/*
* Note this call expects a signal frame on stack
* (regs->sp) so be very carefull here!
......
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