summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/vectors.S
diff options
context:
space:
mode:
authorMax Filippov2017-12-10 03:44:11 +0100
committerMax Filippov2017-12-10 23:48:52 +0100
commit2da03d4114b2587f0e8e45f4862074e34daee64e (patch)
treebb8b7dd122fa8fc036eeaa340264e2af405629cb /arch/xtensa/kernel/vectors.S
parentxtensa: build kernel with text-section-literals (diff)
downloadkernel-qcow2-linux-2da03d4114b2587f0e8e45f4862074e34daee64e.tar.gz
kernel-qcow2-linux-2da03d4114b2587f0e8e45f4862074e34daee64e.tar.xz
kernel-qcow2-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/vectors.S')
-rw-r--r--arch/xtensa/kernel/vectors.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/vectors.S b/arch/xtensa/kernel/vectors.S
index 2bc85051c680..841503d3307c 100644
--- a/arch/xtensa/kernel/vectors.S
+++ b/arch/xtensa/kernel/vectors.S
@@ -305,8 +305,7 @@ _DoubleExceptionVector_WindowUnderflow:
.Lunrecoverable:
rsr a3, excsave1
wsr a0, excsave1
- movi a0, unrecoverable_exception
- callx0 a0
+ call0 unrecoverable_exception
.Lfixup:/* Check for a fixup handler or if we were in a critical section. */