b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | /* |
| 3 | * System call table for Hexagon |
| 4 | * |
| 5 | * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. |
| 6 | */ |
| 7 | |
| 8 | #include <linux/syscalls.h> |
| 9 | #include <linux/signal.h> |
| 10 | #include <linux/unistd.h> |
| 11 | |
| 12 | #include <asm/syscall.h> |
| 13 | |
| 14 | #undef __SYSCALL |
| 15 | #define __SYSCALL(nr, call) [nr] = (call), |
| 16 | |
| 17 | SYSCALL_DEFINE6(hexagon_fadvise64_64, int, fd, int, advice, |
| 18 | SC_ARG64(offset), SC_ARG64(len)) |
| 19 | { |
| 20 | return ksys_fadvise64_64(fd, SC_VAL64(loff_t, offset), SC_VAL64(loff_t, len), advice); |
| 21 | } |
| 22 | #define sys_fadvise64_64 sys_hexagon_fadvise64_64 |
| 23 | |
| 24 | void *sys_call_table[__NR_syscalls] = { |
| 25 | #include <asm/unistd.h> |
| 26 | }; |