root/arch/unicore32/kernel/sys.c

/* [<][>][^][v][top][bottom][index][help] */
   1 // SPDX-License-Identifier: GPL-2.0-only
   2 /*
   3  * linux/arch/unicore32/kernel/sys.c
   4  *
   5  * Code specific to PKUnity SoC and UniCore ISA
   6  *
   7  * Copyright (C) 2001-2010 GUAN Xue-tao
   8  */
   9 #include <linux/module.h>
  10 #include <linux/errno.h>
  11 #include <linux/sched.h>
  12 #include <linux/slab.h>
  13 #include <linux/mm.h>
  14 #include <linux/sem.h>
  15 #include <linux/msg.h>
  16 #include <linux/shm.h>
  17 #include <linux/stat.h>
  18 #include <linux/syscalls.h>
  19 #include <linux/mman.h>
  20 #include <linux/fs.h>
  21 #include <linux/file.h>
  22 #include <linux/ipc.h>
  23 #include <linux/uaccess.h>
  24 
  25 #include <asm/syscalls.h>
  26 #include <asm/cacheflush.h>
  27 
  28 /* Provide the actual syscall number to call mapping. */
  29 #undef __SYSCALL
  30 #define __SYSCALL(nr, call)     [nr] = (call),
  31 
  32 #define sys_mmap2 sys_mmap_pgoff
  33 /* Note that we don't include <linux/unistd.h> but <asm/unistd.h> */
  34 void *sys_call_table[__NR_syscalls] = {
  35         [0 ... __NR_syscalls-1] = sys_ni_syscall,
  36 #include <asm/unistd.h>
  37 };

/* [<][>][^][v][top][bottom][index][help] */