If we are using the vector table in place, there is no need to make an
indirect call to the common handler routine from the vector table entries,
so just use a straight branch instruction in that case.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Eugene Cohen <eugene@hp.com>
mov x0, #\val\r
\r
// Jump to our general handler to deal with all the common parts and process the exception.\r
+#if defined(ARM_RELOCATE_VECTORS)\r
ldr x1, =ASM_PFX(CommonExceptionEntry)\r
br x1\r
.ltorg\r
+#else\r
+ b ASM_PFX(CommonExceptionEntry)\r
+#endif\r
.endm\r
\r
//\r