From dccf78f0a29c44485f2bd5eef4398b6be93ee81b Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 6 Dec 2010 06:06:35 +0000 Subject: [PATCH] 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 --- MdePkg/Library/BaseLib/Ia32/Thunk16.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2