|
@@ -29,13 +29,7 @@
|
|
|
static inline long syscall_get_nr(struct task_struct *task,
|
|
|
struct pt_regs *regs)
|
|
|
{
|
|
|
- /* O32 ABI syscall() - Either 64-bit with O32 or 32-bit */
|
|
|
- if ((config_enabled(CONFIG_32BIT) ||
|
|
|
- test_tsk_thread_flag(task, TIF_32BIT_REGS)) &&
|
|
|
- (regs->regs[2] == __NR_syscall))
|
|
|
- return regs->regs[4];
|
|
|
- else
|
|
|
- return regs->regs[2];
|
|
|
+ return current_thread_info()->syscall;
|
|
|
}
|
|
|
|
|
|
static inline unsigned long mips_get_syscall_arg(unsigned long *arg,
|