Guo Ren | 4859bfc | 2018-09-05 14:25:08 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. |
| 3 | |
| 4 | #include <linux/syscalls.h> |
| 5 | #include <asm/syscalls.h> |
| 6 | |
| 7 | #undef __SYSCALL |
| 8 | #define __SYSCALL(nr, call)[nr] = (call), |
Arnd Bergmann | f840cab | 2024-07-03 17:09:22 +0200 | [diff] [blame] | 9 | #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) |
Guo Ren | 4859bfc | 2018-09-05 14:25:08 +0800 | [diff] [blame] | 10 | |
| 11 | #define sys_fadvise64_64 sys_csky_fadvise64_64 |
Arnd Bergmann | f840cab | 2024-07-03 17:09:22 +0200 | [diff] [blame] | 12 | #define sys_sync_file_range sys_sync_file_range2 |
Guo Ren | 4859bfc | 2018-09-05 14:25:08 +0800 | [diff] [blame] | 13 | void * const sys_call_table[__NR_syscalls] __page_aligned_data = { |
| 14 | [0 ... __NR_syscalls - 1] = sys_ni_syscall, |
Arnd Bergmann | f840cab | 2024-07-03 17:09:22 +0200 | [diff] [blame] | 15 | #include <asm/syscall_table_32.h> |
Guo Ren | 4859bfc | 2018-09-05 14:25:08 +0800 | [diff] [blame] | 16 | }; |