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