xtensa: don't use a12 in strncpy_user
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 25 Jul 2021 23:31:34 +0000 (16:31 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 19 Oct 2021 05:19:34 +0000 (22:19 -0700)
commitd191323bc02370667fede74228135440efd98d2b
treef1fa31aaeb0dea91d6f2a9e65c8c39a3a367f1fd
parenteda8dd1224d6c1c89eb6b687264da9ccfbffb0fd
xtensa: don't use a12 in strncpy_user

a12 is callee-saved register in xtensa call0 ABI, so a function must not
change it. a10 is not used in this function at all, use it instead of
a12 to avoid saving/restoring it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/lib/strncpy_user.S