syscall.c (a86067f587a9460e5f004469d183a76d3a2ab068) | syscall.c (5eacadb5e66b2b100695777ee7d68d8a2d9bd25c) |
---|---|
1/* 2 * arch/xtensa/kernel/syscall.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001 - 2005 Tensilica Inc. --- 19 unchanged lines hidden (view full) --- 28#include <linux/sched/mm.h> 29#include <linux/shm.h> 30 31typedef void (*syscall_t)(void); 32 33syscall_t sys_call_table[__NR_syscalls] /* FIXME __cacheline_aligned */= { 34 [0 ... __NR_syscalls - 1] = (syscall_t)&sys_ni_syscall, 35 | 1/* 2 * arch/xtensa/kernel/syscall.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001 - 2005 Tensilica Inc. --- 19 unchanged lines hidden (view full) --- 28#include <linux/sched/mm.h> 29#include <linux/shm.h> 30 31typedef void (*syscall_t)(void); 32 33syscall_t sys_call_table[__NR_syscalls] /* FIXME __cacheline_aligned */= { 34 [0 ... __NR_syscalls - 1] = (syscall_t)&sys_ni_syscall, 35 |
36#define __SYSCALL(nr,symbol,nargs) [ nr ] = (syscall_t)symbol, 37#include <uapi/asm/unistd.h> | 36#define __SYSCALL(nr, entry, nargs)[nr] = (syscall_t)entry, 37#include <asm/syscall_table.h> 38#undef __SYSCALL |
38}; 39 40#define COLOUR_ALIGN(addr, pgoff) \ 41 ((((addr) + SHMLBA - 1) & ~(SHMLBA - 1)) + \ 42 (((pgoff) << PAGE_SHIFT) & (SHMLBA - 1))) 43 44asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) 45{ --- 53 unchanged lines hidden --- | 39}; 40 41#define COLOUR_ALIGN(addr, pgoff) \ 42 ((((addr) + SHMLBA - 1) & ~(SHMLBA - 1)) + \ 43 (((pgoff) << PAGE_SHIFT) & (SHMLBA - 1))) 44 45asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) 46{ --- 53 unchanged lines hidden --- |