forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/mips/include/asm/syscall.h
....@@ -38,7 +38,7 @@
3838 static inline long syscall_get_nr(struct task_struct *task,
3939 struct pt_regs *regs)
4040 {
41
- return current_thread_info()->syscall;
41
+ return task_thread_info(task)->syscall;
4242 }
4343
4444 static inline void mips_syscall_update_nr(struct task_struct *task,