OSDN Git Service

alpha: fix handling of a3 on straced syscalls
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Sep 2021 22:27:12 +0000 (18:27 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Oct 2022 03:31:15 +0000 (23:31 -0400)
commit19a09e426893a3cb08b97147b8dc22bdfcab3bba
tree2d6e8059aa7ede6b3b526b577e89f12e51818205
parentf7b2431a6d22f7a91c567708e071dfcd6d66db14
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>
arch/alpha/kernel/entry.S