• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0
2 /* $Id: sys_cris.c,v 1.6 2004/03/11 11:38:40 starvik Exp $
3  *
4  * linux/arch/cris/kernel/sys_cris.c
5  *
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.
10  *
11  */
12 
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>
26 
27 #include <linux/uaccess.h>
28 #include <asm/segment.h>
29 
30 asmlinkage long
sys_mmap2(unsigned long addr,unsigned long len,unsigned long prot,unsigned long flags,unsigned long fd,unsigned long pgoff)31 sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
32           unsigned long flags, unsigned long fd, unsigned long pgoff)
33 {
34 	/* bug(?): 8Kb pages here */
35         return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff);
36 }
37