mirror of https://github.com/acidanthera/audk.git
ArmPkg/ArmExceptionLib: avoid indirect call if using vector table in place
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>
This commit is contained in:
parent
8a771a2e39
commit
5d7238cae8
|
@ -187,9 +187,13 @@ VECTOR_BASE(ExceptionHandlersStart)
|
|||
mov x0, #\val
|
||||
|
||||
// Jump to our general handler to deal with all the common parts and process the exception.
|
||||
#if defined(ARM_RELOCATE_VECTORS)
|
||||
ldr x1, =ASM_PFX(CommonExceptionEntry)
|
||||
br x1
|
||||
.ltorg
|
||||
#else
|
||||
b ASM_PFX(CommonExceptionEntry)
|
||||
#endif
|
||||
.endm
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue