mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
alpha: fix handling of a3 on straced syscalls
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 <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user