License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / x86 / entry / syscall_32.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
303395ac
PA
2/* System call table for i386. */
3
4#include <linux/linkage.h>
5#include <linux/sys.h>
6#include <linux/cache.h>
7#include <asm/asm-offsets.h>
034042cc 8#include <asm/syscall.h>
303395ac 9
cfcbadb4 10#define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
303395ac
PA
11#include <asm/syscalls_32.h>
12#undef __SYSCALL_I386
13
cfcbadb4 14#define __SYSCALL_I386(nr, sym, qual) [nr] = sym,
303395ac 15
eb974c62 16extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
303395ac 17
bace7117 18__visible const sys_call_ptr_t ia32_sys_call_table[__NR_syscall_compat_max+1] = {
303395ac 19 /*
61f1e7e2 20 * Smells like a compiler bug -- it doesn't work
303395ac
PA
21 * when the & below is removed.
22 */
bace7117 23 [0 ... __NR_syscall_compat_max] = &sys_ni_syscall,
303395ac
PA
24#include <asm/syscalls_32.h>
25};