]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Fix GCC Thunk support for IA32
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 6 Dec 2010 06:06:35 +0000 (06:06 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 6 Dec 2010 06:06:35 +0000 (06:06 +0000)
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

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