From 4eed2dbd8999f3311ac24ecb7f05a6fb3b641952 Mon Sep 17 00:00:00 2001 From: jyao1 Date: Sun, 26 Dec 2010 07:25:12 +0000 Subject: 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 --- .../BootScriptSaveOnS3SaveStateThunk/X64/AsmDispatchExecute.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'EdkCompatibilityPkg/Compatibility') 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 -- cgit v1.2.3