blob: a6eb91a0e2f68ab5257bb6d99fe6ff67da0bcf0c [file] [log] [blame]
Guo Ren4859bfc2018-09-05 14:25:08 +08001// 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 Bergmannf840cab2024-07-03 17:09:22 +02009#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
Guo Ren4859bfc2018-09-05 14:25:08 +080010
11#define sys_fadvise64_64 sys_csky_fadvise64_64
Arnd Bergmannf840cab2024-07-03 17:09:22 +020012#define sys_sync_file_range sys_sync_file_range2
Guo Ren4859bfc2018-09-05 14:25:08 +080013void * const sys_call_table[__NR_syscalls] __page_aligned_data = {
14 [0 ... __NR_syscalls - 1] = sys_ni_syscall,
Arnd Bergmannf840cab2024-07-03 17:09:22 +020015#include <asm/syscall_table_32.h>
Guo Ren4859bfc2018-09-05 14:25:08 +080016};