Path: blob/master/arch/mn10300/kernel/sys_mn10300.c
10817 views
/* MN10300 Weird system calls1*2* Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.3* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/10#include <linux/errno.h>11#include <linux/sched.h>12#include <linux/syscalls.h>13#include <linux/mm.h>14#include <linux/smp.h>15#include <linux/sem.h>16#include <linux/msg.h>17#include <linux/shm.h>18#include <linux/stat.h>19#include <linux/mman.h>20#include <linux/file.h>21#include <linux/tty.h>2223#include <asm/uaccess.h>2425asmlinkage long old_mmap(unsigned long addr, unsigned long len,26unsigned long prot, unsigned long flags,27unsigned long fd, unsigned long offset)28{29if (offset & ~PAGE_MASK)30return -EINVAL;31return sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);32}333435