xtensa: fix a6 and a7 handling in fast_syscall_xtensa
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 31 Jul 2014 18:40:57 +0000 (22:40 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:13 +0000 (14:52 -0700)
commita98cf00477ea274737dc330d23221db6c14484e6
tree0fcdfb930633bb4dcc0f48ec5c7877ee13d76d3d
parent64930da5dc330e47bc879228a0bb66479876a13b
xtensa: fix a6 and a7 handling in fast_syscall_xtensa

commit d1b6ba82a50cecf94be540a3a153aa89d97511a0 upstream.

Remove restoring a6 on some return paths and instead modify and restore
it in a single place, using symbolic name.
Correctly restore a7 from PT_AREG7 in case of illegal a6 value.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/entry.S