summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/X64/AsmDispatchExecute.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/X64/AsmDispatchExecute.S b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/X64/AsmDispatchExecute.S
index 3dd6bf3996..167e7d4cc1 100644
--- a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/X64/AsmDispatchExecute.S
+++ b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/X64/AsmDispatchExecute.S
@@ -107,7 +107,7 @@ ASM_PFX(AsmExecute32BitCode):
lea Compatible(%rip), %rdx # assume address < 4G
orq %rdx, %rcx
push %rcx
- retf
+ .byte 0xcb # retf
Compatible:
# reload DS/ES/SS to make sure they are correct referred to current GDT
@@ -173,7 +173,7 @@ ReturnBack:
#
# Reload cs register
#
- retf
+ .byte 0xcb # retf
ReloadCS:
#
# Now we're in Long Mode
@@ -203,7 +203,7 @@ ReloadCS:
lea ReturnToLongMode(%rip), %rcx
orq %r9, %rcx
push %rcx
- retf
+ .byte 0xcb # retf
ReturnToLongMode:
#
# Reload original DS/ES/SS