sys.c (f4091322d7397c8eb85c071570cab0e82ee3e261) sys.c (9ac08002130b591d0f2ee035aa9062f84f2f15cb)
1/*
2 * AArch64-specific system calls implementation
3 *
4 * Copyright (C) 2012 ARM Ltd.
5 * Author: Catalin Marinas <catalin.marinas@arm.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 12 unchanged lines hidden (view full) ---

21#include <linux/errno.h>
22#include <linux/fs.h>
23#include <linux/mm.h>
24#include <linux/export.h>
25#include <linux/sched.h>
26#include <linux/slab.h>
27#include <linux/syscalls.h>
28
1/*
2 * AArch64-specific system calls implementation
3 *
4 * Copyright (C) 2012 ARM Ltd.
5 * Author: Catalin Marinas <catalin.marinas@arm.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 12 unchanged lines hidden (view full) ---

21#include <linux/errno.h>
22#include <linux/fs.h>
23#include <linux/mm.h>
24#include <linux/export.h>
25#include <linux/sched.h>
26#include <linux/slab.h>
27#include <linux/syscalls.h>
28
29/*
30 * Clone a task - this clones the calling program thread.
31 */
32asmlinkage long sys_clone(unsigned long clone_flags, unsigned long newsp,
33 int __user *parent_tidptr, unsigned long tls_val,
34 int __user *child_tidptr)
35{
36 return do_fork(clone_flags, newsp, current_pt_regs(), 0,
37 parent_tidptr, child_tidptr);
38}
39
40asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
41 unsigned long prot, unsigned long flags,
42 unsigned long fd, off_t off)
43{
44 if (offset_in_page(off) != 0)
45 return -EINVAL;
46
47 return sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT);

--- 21 unchanged lines hidden ---
29asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
30 unsigned long prot, unsigned long flags,
31 unsigned long fd, off_t off)
32{
33 if (offset_in_page(off) != 0)
34 return -EINVAL;
35
36 return sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT);

--- 21 unchanged lines hidden ---