Skip to content

Commit

Permalink
alpha: fix handling of a3 on straced syscalls
Browse files Browse the repository at this point in the history
For successful syscall that happens to return a negative, we want
a3 set to 0, no matter whether it's straced or not.  As it is,
for straced case we leave the value it used to have on syscall
entry.  Easily fixed, fortunately...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Oct 30, 2022
1 parent f7b2431 commit 19a09e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/alpha/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ ret_from_straced:

/* check return.. */
blt $0, $strace_error /* the call failed */
stq $31, 72($sp) /* a3=0 => no error */
$strace_success:
stq $31, 72($sp) /* a3=0 => no error */
stq $0, 0($sp) /* save return value */

DO_SWITCH_STACK
Expand Down

0 comments on commit 19a09e4

Please sign in to comment.