mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
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
This commit is contained in:
parent
ef291d07a1
commit
4eed2dbd89
@ -107,7 +107,7 @@ ASM_PFX(AsmExecute32BitCode):
|
|||||||
lea Compatible(%rip), %rdx # assume address < 4G
|
lea Compatible(%rip), %rdx # assume address < 4G
|
||||||
orq %rdx, %rcx
|
orq %rdx, %rcx
|
||||||
push %rcx
|
push %rcx
|
||||||
retf
|
.byte 0xcb # retf
|
||||||
|
|
||||||
Compatible:
|
Compatible:
|
||||||
# reload DS/ES/SS to make sure they are correct referred to current GDT
|
# reload DS/ES/SS to make sure they are correct referred to current GDT
|
||||||
@ -173,7 +173,7 @@ ReturnBack:
|
|||||||
#
|
#
|
||||||
# Reload cs register
|
# Reload cs register
|
||||||
#
|
#
|
||||||
retf
|
.byte 0xcb # retf
|
||||||
ReloadCS:
|
ReloadCS:
|
||||||
#
|
#
|
||||||
# Now we're in Long Mode
|
# Now we're in Long Mode
|
||||||
@ -203,7 +203,7 @@ ReloadCS:
|
|||||||
lea ReturnToLongMode(%rip), %rcx
|
lea ReturnToLongMode(%rip), %rcx
|
||||||
orq %r9, %rcx
|
orq %r9, %rcx
|
||||||
push %rcx
|
push %rcx
|
||||||
retf
|
.byte 0xcb # retf
|
||||||
ReturnToLongMode:
|
ReturnToLongMode:
|
||||||
#
|
#
|
||||||
# Reload original DS/ES/SS
|
# Reload original DS/ES/SS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user