mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg: error: invalid instruction mnemonic 'retf'
.S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh <nms@otdel-1.org> Reviewed-by: Andrew Fish <afish@apple.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16098 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c99106b745
commit
b6341b2698
|
@ -378,12 +378,7 @@ DoReturn:
|
|||
pushq 0x18(%rax) # save EFLAGS in new location
|
||||
movq (%rax), %rax # restore rax
|
||||
popfq # restore EFLAGS
|
||||
.byte 0x48 # prefix to composite "retq" with next "retf"
|
||||
#ifdef __APPLE__
|
||||
.byte 0xCB
|
||||
#else
|
||||
retf # far return
|
||||
#endif
|
||||
lretq # far return
|
||||
DoIret:
|
||||
iretq
|
||||
|
||||
|
|
Loading…
Reference in New Issue