summaryrefslogtreecommitdiff
path: root/OvmfPkg/Library
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library')
-rw-r--r--OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S b/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S
index 5b8c29a3ae..6a6335d063 100644
--- a/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S
+++ b/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S
@@ -32,9 +32,9 @@ ASM_PFX(JumpToKernel):
// Jump into the compatibility mode CS
pushq $0x10
- leaq 1f, %rax
+ leaq 1f(%rip), %rax
pushq %rax
- retfq
+ .byte 0x48, 0xcb ; retfq
1: // Now in compatibility mode
.code32