Fix the issue to clear the high 16-bit of EAX before use it Thunk code.
This patch updates MdePkg BaseLib, EcpPkg EdkIIGlueLib BaseLib and ThunkLib. Signed-off-by: lgao4 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12877 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -148,7 +148,7 @@ Label_16Bit:
|
||||
|
||||
Label:
|
||||
xor %rax,%rax
|
||||
movl %ss,%eax
|
||||
movw %ss,%ax
|
||||
shl $0x4,%eax
|
||||
add %esp,%eax
|
||||
mov %r15,%rsp
|
||||
|
@@ -144,7 +144,7 @@ _Thunk16 PROC USES rbp rbx rsi rdi r12 r13 r14 r15
|
||||
retf
|
||||
@@:
|
||||
xor rax, rax
|
||||
mov eax, ss
|
||||
mov ax, ss
|
||||
shl eax, 4
|
||||
add eax, esp ; rax <- address of 16-bit stack
|
||||
mov rsp, r15
|
||||
|
Reference in New Issue
Block a user