aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/64/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/64/start.S')
-rw-r--r--arch/x86/64/start.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/64/start.S b/arch/x86/64/start.S
index b11e8bca..7637525a 100644
--- a/arch/x86/64/start.S
+++ b/arch/x86/64/start.S
@@ -74,7 +74,7 @@ real_start:
/* far jump to load the CS from our GDT */
pushl $CODE_SELECTOR
pushl $PHYS(.Lfarjump)
- retf
+ lret
.Lfarjump:
@@ -185,7 +185,7 @@ paging_setup:
/* Use a far jump to get into 64bit mode */
pushl $CODE_64_SELECTOR
pushl $PHYS(farjump64)
- retf
+ lret
.align 8
.code64