mirror of https://github.com/acidanthera/audk.git
Currently, the AArch64 implementation of LongJump() avoids using the RET instruction to perform the jump, even though the target address is held in the link register X30, as the nature of a long jump implies that the ordinary return address prediction machinery will not be able to make a correct prediction. However, LongJump() is rarely used, and the return stack will be out of sync in any case, so this optimization has little value in practice, and given that indirect calls other than function returns require a BTI landing pad at the call site, this optimization is not compatible with BTI. So let's just use RET instead. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com> |
||
---|---|---|
.. | ||
CpuBreakpoint.S | ||
CpuBreakpoint.asm | ||
DisableInterrupts.S | ||
DisableInterrupts.asm | ||
EnableInterrupts.S | ||
EnableInterrupts.asm | ||
GetInterruptsState.S | ||
GetInterruptsState.asm | ||
MemoryFence.S | ||
MemoryFence.asm | ||
SetJumpLongJump.S | ||
SetJumpLongJump.asm | ||
SpeculationBarrier.S | ||
SpeculationBarrier.asm | ||
SwitchStack.S | ||
SwitchStack.asm |