hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/openrisc/include/asm/syscall.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * OpenRISC Linux
34 *
....@@ -9,11 +10,6 @@
910 * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
1011 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
1112 * et al.
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
1713 */
1814
1915 #ifndef __ASM_OPENRISC_SYSCALL_H__
....@@ -56,23 +52,19 @@
5652
5753 static inline void
5854 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
59
- unsigned int i, unsigned int n, unsigned long *args)
55
+ unsigned long *args)
6056 {
61
- BUG_ON(i + n > 6);
62
-
63
- memcpy(args, &regs->gpr[3 + i], n * sizeof(args[0]));
57
+ memcpy(args, &regs->gpr[3], 6 * sizeof(args[0]));
6458 }
6559
6660 static inline void
6761 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs,
68
- unsigned int i, unsigned int n, const unsigned long *args)
62
+ const unsigned long *args)
6963 {
70
- BUG_ON(i + n > 6);
71
-
72
- memcpy(&regs->gpr[3 + i], args, n * sizeof(args[0]));
64
+ memcpy(&regs->gpr[3], args, 6 * sizeof(args[0]));
7365 }
7466
75
-static inline int syscall_get_arch(void)
67
+static inline int syscall_get_arch(struct task_struct *task)
7668 {
7769 return AUDIT_ARCH_OPENRISC;
7870 }