From: jljusten Date: Mon, 6 Dec 2010 06:06:35 +0000 (+0000) Subject: MdePkg: Fix GCC Thunk support for IA32 X-Git-Tag: edk2-stable201903~15353 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=dccf78f0a29c44485f2bd5eef4398b6be93ee81b 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 --- diff --git a/MdePkg/Library/BaseLib/Ia32/Thunk16.S b/MdePkg/Library/BaseLib/Ia32/Thunk16.S index 44aea1a5ef..df205e9a19 100644 --- a/MdePkg/Library/BaseLib/Ia32/Thunk16.S +++ b/MdePkg/Library/BaseLib/Ia32/Thunk16.S @@ -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