xtensa: fix a6 and a7 handling in fast_syscall_xtensa

commit d1b6ba82a5 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>
This commit is contained in:
Max Filippov 2014-07-31 22:40:57 +04:00 • committed by Greg Kroah-Hartman
commit 7e5866d82d