Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / cris / kernel / sys_cris.c
blobecea13f1d76095e369ca68808f5d92b4191fe663
1 // SPDX-License-Identifier: GPL-2.0
2 /* $Id: sys_cris.c,v 1.6 2004/03/11 11:38:40 starvik Exp $
4 * linux/arch/cris/kernel/sys_cris.c
6 * This file contains various random system calls that
7 * have a non-standard calling sequence on some platforms.
8 * Since we don't have to do any backwards compatibility, our
9 * versions are done in the most "normal" way possible.
13 #include <linux/errno.h>
14 #include <linux/sched.h>
15 #include <linux/syscalls.h>
16 #include <linux/mm.h>
17 #include <linux/fs.h>
18 #include <linux/smp.h>
19 #include <linux/sem.h>
20 #include <linux/msg.h>
21 #include <linux/shm.h>
22 #include <linux/stat.h>
23 #include <linux/mman.h>
24 #include <linux/file.h>
25 #include <linux/ipc.h>
27 #include <linux/uaccess.h>
28 #include <asm/segment.h>
30 asmlinkage long
31 sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
32 unsigned long flags, unsigned long fd, unsigned long pgoff)
34 /* bug(?): 8Kb pages here */
35 return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff);