MdePkg: Fix GCC Thunk support for IA32

In r11047 Ia32/Thunk.S was modified.  However, the current
implemention of Ia32/Thunk.S has contant values in the code
which must be updated if the code is changed.

This change updates those constants for the r11047 change.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11121 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2010-12-06 06:06:35 +00:00
parent 7709cf48e4
commit dccf78f0a2
1 changed files with 2 additions and 2 deletions

View File

@ -160,14 +160,14 @@ ASM_PFX(InternalAsmThunk16):
movsl # copy RegSet
movl 40(%esp), %eax # eax <- address of transition code
movl %edx, %esi # esi <- 16-bit stack segment
lea 0x5e(%eax), %edx
lea 0x5f(%eax), %edx
movl %eax, %ecx
andl $0xf, %ecx
shll $12, %eax
lea 0x6(%ecx), %ecx
movw %cx, %ax
stosl # [edi] <- return address of user code
sgdtl 0xffffffa2(%edx)
sgdtl 0xffffffa1(%edx)
sidtl 0x24(%esp)
movl %cr0, %eax
movl %eax, (%edx) # save CR0 in SavedCr0