syscall.h (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) syscall.h (4e57a4ddf6b0d9cce1cf2ffd153df1ad3c2c9cc2)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Access to user system call parameters and results
4 *
5 * See asm-generic/syscall.h for descriptions of what we must do here.
6 */
7
8#ifndef _ASM_ARM_SYSCALL_H

--- 8 unchanged lines hidden (view full) ---

17
18#define NR_syscalls (__NR_syscalls)
19
20extern const unsigned long sys_call_table[];
21
22static inline int syscall_get_nr(struct task_struct *task,
23 struct pt_regs *regs)
24{
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Access to user system call parameters and results
4 *
5 * See asm-generic/syscall.h for descriptions of what we must do here.
6 */
7
8#ifndef _ASM_ARM_SYSCALL_H

--- 8 unchanged lines hidden (view full) ---

17
18#define NR_syscalls (__NR_syscalls)
19
20extern const unsigned long sys_call_table[];
21
22static inline int syscall_get_nr(struct task_struct *task,
23 struct pt_regs *regs)
24{
25 return task_thread_info(task)->syscall;
25 if (IS_ENABLED(CONFIG_AEABI) && !IS_ENABLED(CONFIG_OABI_COMPAT))
26 return task_thread_info(task)->abi_syscall;
27
28 return task_thread_info(task)->abi_syscall & __NR_SYSCALL_MASK;
26}
27
28static inline void syscall_rollback(struct task_struct *task,
29 struct pt_regs *regs)
30{
31 regs->ARM_r0 = regs->ARM_ORIG_r0;
32}
33

--- 49 unchanged lines hidden ---
29}
30
31static inline void syscall_rollback(struct task_struct *task,
32 struct pt_regs *regs)
33{
34 regs->ARM_r0 = regs->ARM_ORIG_r0;
35}
36

--- 49 unchanged lines hidden ---