Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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> |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 7 | #include <linux/syscalls.h> |
| 8 | #include <asm/unistd.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 9 | #include <asm/syscall.h> |
| 10 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 11 | #define __SYSCALL_I386(nr, sym) extern long __ia32_##sym(const struct pt_regs *); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 12 | |
| 13 | #include <asm/syscalls_32.h> |
| 14 | #undef __SYSCALL_I386 |
| 15 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 16 | #define __SYSCALL_I386(nr, sym) [nr] = __ia32_##sym, |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 17 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 18 | __visible const sys_call_ptr_t ia32_sys_call_table[__NR_ia32_syscall_max+1] = { |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 19 | /* |
| 20 | * Smells like a compiler bug -- it doesn't work |
| 21 | * when the & below is removed. |
| 22 | */ |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 23 | [0 ... __NR_ia32_syscall_max] = &__ia32_sys_ni_syscall, |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 24 | #include <asm/syscalls_32.h> |
| 25 | }; |