summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S')
-rw-r--r--MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S b/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
index deefdf526b..1d5cfbf644 100644
--- a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
+++ b/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
@@ -85,7 +85,6 @@ ASM_PFX(InternalLongJump):
cmp w1, #0
mov w0, #1
csel w0, w1, w0, ne
- // use br not ret, as ret is guaranteed to mispredict
- br x30
+ ret
ASM_FUNCTION_REMOVE_IF_UNREFERENCED