summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/Ia32/Thunk16.S
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-25 10:05:26 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-25 10:05:26 +0000
commitb7089db12047675e829a74674700b03406c432e6 (patch)
tree2b8db83dac416cf6a15e1cf7ded7d802348cbc68 /MdePkg/Library/BaseLib/Ia32/Thunk16.S
parent1a0d7262b42e2eb283a2927fbc5cff71248a8473 (diff)
downloadedk2-b7089db12047675e829a74674700b03406c432e6.tar.gz
edk2-b7089db12047675e829a74674700b03406c432e6.tar.bz2
edk2-b7089db12047675e829a74674700b03406c432e6.zip
1.Fix .global issue in GAS (EdkT207).
2.Fix Label start with @ (EdkT208). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1610 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/Thunk16.S')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/Thunk16.S28
1 files changed, 14 insertions, 14 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/Thunk16.S b/MdePkg/Library/BaseLib/Ia32/Thunk16.S
index aad6bbe26b..2641556d98 100644
--- a/MdePkg/Library/BaseLib/Ia32/Thunk16.S
+++ b/MdePkg/Library/BaseLib/Ia32/Thunk16.S
@@ -19,8 +19,8 @@
#
#------------------------------------------------------------------------------
-.global _m16Start, _m16Size, _mThunk16Attr, _m16Gdt, _m16GdtrBase, _mTransition
-.global _InternalAsmThunk16
+.globl _m16Start, _m16Size, _mThunk16Attr, _m16Gdt, _m16GdtrBase, _mTransition
+.globl _InternalAsmThunk16
_m16Start:
@@ -30,8 +30,8 @@ _BackFromUserCode:
push %ss
push %cs
.byte 0x66
- call @Base1 # push eip
-@Base1:
+ call L_Base1 # push eip
+L_Base1:
pushfw # pushfd actually
cli # disable interrupts
push %gs
@@ -39,20 +39,20 @@ _BackFromUserCode:
push %es
push %ds
pushaw # pushad actually
- .byte 0x66, 0xba # mov edx, imm32
+ .byte 0x66, 0xba # mov edx, imm32
_ThunkAttr: .space 4
testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15, %dl
- jz @1
+ jz 1f
movl $0x15cd2401, %eax # mov ax, 2401h & int 15h
cli # disable interrupts
- jnc @2
-@1:
+ jnc 2f
+1:
testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL, %dl
- jz @2
+ jz 2f
inb $0x92, %al
orb $2, %al
outb %al, $0x92 # deactivate A20M#
-@2:
+2:
movl %ss, %eax
.byte 0x67, 0x66, 0x8d, 0x6c, 0x24, 0x34, 0x66
mov %ebp, 0xffffffd8(%esi)
@@ -93,16 +93,16 @@ _ToUserCode:
movl %esi, %ss # set up 16-bit stack segment
xchgw %bx, %sp # set up 16-bit stack pointer
.byte 0x66
- call @Base # push eip
-@Base:
- popw %bp # ebp <- offset @Base
+ call L_Base # push eip
+L_Base:
+ popw %bp # ebp <- offset L_Base
addr16 pushl 36(%si)
.byte 0x36
lea 0xc(%esi), %eax
push %eax
lret
-@RealMode:
+L_RealMode:
mov %edx, %cs:0xffffffc5(%esi)
mov %bx, %cs:0xffffffcb(%esi)
lidtw %cs:0xffffffd7(%esi)