blob: 7aa036ec78ff8a39e97d0be7ce12b24d1eb521ee [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* $Id: sys_cris.c,v 1.6 2004/03/11 11:38:40 starvik Exp $
2 *
3 * linux/arch/cris/kernel/sys_cris.c
4 *
5 * This file contains various random system calls that
6 * have a non-standard calling sequence on some platforms.
7 * Since we don't have to do any backwards compatibility, our
8 * versions are done in the most "normal" way possible.
9 *
10 */
11
12#include <linux/errno.h>
13#include <linux/sched.h>
14#include <linux/syscalls.h>
15#include <linux/mm.h>
Jesper Nilsson5978e792007-11-14 17:00:53 -080016#include <linux/fs.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#include <linux/smp.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#include <linux/sem.h>
19#include <linux/msg.h>
20#include <linux/shm.h>
21#include <linux/stat.h>
22#include <linux/mman.h>
23#include <linux/file.h>
Adrian Bunkcba4fbb2007-10-16 23:29:24 -070024#include <linux/ipc.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
26#include <asm/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#include <asm/segment.h>
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029asmlinkage long
30sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
31 unsigned long flags, unsigned long fd, unsigned long pgoff)
32{
Al Virof8b72562009-11-30 17:37:04 -050033 /* bug(?): 8Kb pages here */
34 return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff);
Linus Torvalds1da177e2005-04-16 15:20:36 -070035}