[x86][clang] Make return mnemonic compatible with clang

GCC appears to accept the Intel retf syntax in AT&T mode but clang is
stricter and requires use of lret.
This commit is contained in:
Alex Richardson
2023-06-07 13:30:11 -07:00
parent 4a9d0c33bd
commit c2a31bf8a6

View File

@@ -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