Commit 4416c649 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscalls: Add sys_msync helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent e0e934aa
......@@ -33,6 +33,7 @@
#define __NR_set_thread_area 205
#define __NR_get_thread_area 211
#define __NR_restart_syscall 219
#define __NR_msync 227
#else /* CONFIG_X86_64 */
# error x86-32 bit mode not yet implemented
......
......@@ -284,6 +284,11 @@ static long always_inline sys_tgkill(long tgid, long pid, int sig)
return syscall3(__NR_tgkill, tgid, pid, (long)sig);
}
static long always_inline sys_msync(void *addr, unsigned long length, int flags)
{
return syscall3(__NR_msync, (long)addr, length, (long)flags);
}
#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