syscall_32.c (594ce0b8a998aa4d05827cd7c0d0dcec9a1e3ae2) | syscall_32.c (9142be9e6443fd641ca37f820efe00d9cd890eb1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* System call table for i386. */ 3 4#include <linux/linkage.h> 5#include <linux/sys.h> 6#include <linux/cache.h> 7#include <linux/syscalls.h> 8#include <asm/syscall.h> 9 10#ifdef CONFIG_IA32_EMULATION 11#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat) 12#else 13#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 14#endif 15 16#define __SYSCALL(nr, sym) extern long __ia32_##sym(const struct pt_regs *); | 1// SPDX-License-Identifier: GPL-2.0 2/* System call table for i386. */ 3 4#include <linux/linkage.h> 5#include <linux/sys.h> 6#include <linux/cache.h> 7#include <linux/syscalls.h> 8#include <asm/syscall.h> 9 10#ifdef CONFIG_IA32_EMULATION 11#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat) 12#else 13#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 14#endif 15 16#define __SYSCALL(nr, sym) extern long __ia32_##sym(const struct pt_regs *); |
17 | 17#define __SYSCALL_NORETURN(nr, sym) extern long __noreturn __ia32_##sym(const struct pt_regs *); |
18#include <asm/syscalls_32.h> | 18#include <asm/syscalls_32.h> |
19#undef __SYSCALL | 19#undef __SYSCALL |
20 | 20 |
21#undef __SYSCALL_NORETURN 22#define __SYSCALL_NORETURN __SYSCALL 23 |
|
21/* 22 * The sys_call_table[] is no longer used for system calls, but 23 * kernel/trace/trace_syscalls.c still wants to know the system 24 * call address. 25 */ 26#ifdef CONFIG_X86_32 27#define __SYSCALL(nr, sym) __ia32_##sym, 28const sys_call_ptr_t sys_call_table[] = { 29#include <asm/syscalls_32.h> 30}; | 24/* 25 * The sys_call_table[] is no longer used for system calls, but 26 * kernel/trace/trace_syscalls.c still wants to know the system 27 * call address. 28 */ 29#ifdef CONFIG_X86_32 30#define __SYSCALL(nr, sym) __ia32_##sym, 31const sys_call_ptr_t sys_call_table[] = { 32#include <asm/syscalls_32.h> 33}; |
31#undef __SYSCALL | 34#undef __SYSCALL |
32#endif 33 34#define __SYSCALL(nr, sym) case nr: return __ia32_##sym(regs); | 35#endif 36 37#define __SYSCALL(nr, sym) case nr: return __ia32_##sym(regs); |
35 | |
36long ia32_sys_call(const struct pt_regs *regs, unsigned int nr) 37{ 38 switch (nr) { 39 #include <asm/syscalls_32.h> 40 default: return __ia32_sys_ni_syscall(regs); 41 } 42}; | 38long ia32_sys_call(const struct pt_regs *regs, unsigned int nr) 39{ 40 switch (nr) { 41 #include <asm/syscalls_32.h> 42 default: return __ia32_sys_ni_syscall(regs); 43 } 44}; |