]> git.itanic.dy.fi Git - linux-stable/commit
parisc: Avoid trashing sr2 and sr3 in LWS code
authorJohn David Anglin <dave.anglin@bell.net>
Fri, 28 Oct 2016 20:13:42 +0000 (22:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2017 08:23:17 +0000 (10:23 +0200)
commit558ca24dc296a859af75edf495a0972a00e9200d
treea00c7cce951b52a035d490c80cab2a41c174dcea
parent6f0dee7d9c9b815c45b96cad2ab2958b4afe5840
parisc: Avoid trashing sr2 and sr3 in LWS code

commit f4125cfdb3008363137f744c101e5d76ead760ba upstream.

There is no need to trash sr2 and sr3 in the Light-weight syscall (LWS).  sr2
already points to kernel space (it's zero in userspace, otherwise syscalls
wouldn't work), and since the LWS code is executed in userspace, we can simply
ignore to preload sr3.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/syscall.S