forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/microblaze/include/asm/syscall.h
....@@ -82,18 +82,22 @@
8282
8383 static inline void syscall_get_arguments(struct task_struct *task,
8484 struct pt_regs *regs,
85
- unsigned int i, unsigned int n,
8685 unsigned long *args)
8786 {
87
+ unsigned int i = 0;
88
+ unsigned int n = 6;
89
+
8890 while (n--)
8991 *args++ = microblaze_get_syscall_arg(regs, i++);
9092 }
9193
9294 static inline void syscall_set_arguments(struct task_struct *task,
9395 struct pt_regs *regs,
94
- unsigned int i, unsigned int n,
9596 const unsigned long *args)
9697 {
98
+ unsigned int i = 0;
99
+ unsigned int n = 6;
100
+
97101 while (n--)
98102 microblaze_set_syscall_arg(regs, i++, *args++);
99103 }
....@@ -101,7 +105,7 @@
101105 asmlinkage unsigned long do_syscall_trace_enter(struct pt_regs *regs);
102106 asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
103107
104
-static inline int syscall_get_arch(void)
108
+static inline int syscall_get_arch(struct task_struct *task)
105109 {
106110 return AUDIT_ARCH_MICROBLAZE;
107111 }