.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Access to user system call parameters and results |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2008 Intel Corp. Shaohua Li <shaohua.li@intel.com> |
---|
5 | | - * |
---|
6 | | - * This copyrighted material is made available to anyone wishing to use, |
---|
7 | | - * modify, copy, or redistribute it subject to the terms and conditions |
---|
8 | | - * of the GNU General Public License v.2. |
---|
9 | 6 | * |
---|
10 | 7 | * See asm-generic/syscall.h for descriptions of what we must do here. |
---|
11 | 8 | */ |
---|
.. | .. |
---|
59 | 56 | } |
---|
60 | 57 | |
---|
61 | 58 | extern void ia64_syscall_get_set_arguments(struct task_struct *task, |
---|
62 | | - struct pt_regs *regs, unsigned int i, unsigned int n, |
---|
63 | | - unsigned long *args, int rw); |
---|
| 59 | + struct pt_regs *regs, unsigned long *args, int rw); |
---|
64 | 60 | static inline void syscall_get_arguments(struct task_struct *task, |
---|
65 | 61 | struct pt_regs *regs, |
---|
66 | | - unsigned int i, unsigned int n, |
---|
67 | 62 | unsigned long *args) |
---|
68 | 63 | { |
---|
69 | | - BUG_ON(i + n > 6); |
---|
70 | | - |
---|
71 | | - ia64_syscall_get_set_arguments(task, regs, i, n, args, 0); |
---|
| 64 | + ia64_syscall_get_set_arguments(task, regs, args, 0); |
---|
72 | 65 | } |
---|
73 | 66 | |
---|
74 | 67 | static inline void syscall_set_arguments(struct task_struct *task, |
---|
75 | 68 | struct pt_regs *regs, |
---|
76 | | - unsigned int i, unsigned int n, |
---|
77 | 69 | unsigned long *args) |
---|
78 | 70 | { |
---|
79 | | - BUG_ON(i + n > 6); |
---|
80 | | - |
---|
81 | | - ia64_syscall_get_set_arguments(task, regs, i, n, args, 1); |
---|
| 71 | + ia64_syscall_get_set_arguments(task, regs, args, 1); |
---|
82 | 72 | } |
---|
83 | 73 | |
---|
84 | | -static inline int syscall_get_arch(void) |
---|
| 74 | +static inline int syscall_get_arch(struct task_struct *task) |
---|
85 | 75 | { |
---|
86 | 76 | return AUDIT_ARCH_IA64; |
---|
87 | 77 | } |
---|