summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/coprocessor.S
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-09 18:44:11 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-10 14:48:52 -0800
commit2da03d4114b2587f0e8e45f4862074e34daee64e (patch)
treebb8b7dd122fa8fc036eeaa340264e2af405629cb /arch/xtensa/kernel/coprocessor.S
parentf8f02ca73cd8d1e2ac61ea1e5f0574a8c1f472fa (diff)
downloadlinux-2da03d4114b2587f0e8e45f4862074e34daee64e.tar.gz
linux-2da03d4114b2587f0e8e45f4862074e34daee64e.tar.bz2
linux-2da03d4114b2587f0e8e45f4862074e34daee64e.zip
xtensa: use call instead of callx in assembly code
Now that xtensa assembly sources are compiled with -mlongcalls let the assembler and linker relax call instructions into l32r + callx where needed. This change makes the code cleaner and potentially a bit faster. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/coprocessor.S')
-rw-r--r--arch/xtensa/kernel/coprocessor.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/coprocessor.S b/arch/xtensa/kernel/coprocessor.S
index 3a98503ad11a..4f8b52d575a2 100644
--- a/arch/xtensa/kernel/coprocessor.S
+++ b/arch/xtensa/kernel/coprocessor.S
@@ -212,8 +212,7 @@ ENDPROC(coprocessor_restore)
ENTRY(fast_coprocessor_double)
wsr a0, excsave1
- movi a0, unrecoverable_exception
- callx0 a0
+ call0 unrecoverable_exception
ENDPROC(fast_coprocessor_double)