diff options
| -rw-r--r-- | arch/x86/include/asm/syscall.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index 1ace47b62592..2e188d68397c 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h | |||
| @@ -29,13 +29,13 @@ extern const unsigned long sys_call_table[]; | |||
| 29 | */ | 29 | */ |
| 30 | static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) | 30 | static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) |
| 31 | { | 31 | { |
| 32 | return regs->orig_ax & __SYSCALL_MASK; | 32 | return regs->orig_ax; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | static inline void syscall_rollback(struct task_struct *task, | 35 | static inline void syscall_rollback(struct task_struct *task, |
| 36 | struct pt_regs *regs) | 36 | struct pt_regs *regs) |
| 37 | { | 37 | { |
| 38 | regs->ax = regs->orig_ax & __SYSCALL_MASK; | 38 | regs->ax = regs->orig_ax; |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | static inline long syscall_get_error(struct task_struct *task, | 41 | static inline long syscall_get_error(struct task_struct *task, |
