summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-26 07:25:12 +0000
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-26 07:25:12 +0000
commit4eed2dbd8999f3311ac24ecb7f05a6fb3b641952 (patch)
treeab13ab35708ced5b6c625c5e45ce776589426289
parentef291d07a136f57d2f11a5b589b0a93d7a346388 (diff)
downloadedk2-platforms-4eed2dbd8999f3311ac24ecb7f05a6fb3b641952.tar.xz
Fix CYG GCC build fail on retf.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11202 6f19259b-4bc3-4df7-8a09-765794883524
-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