]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Thunk16/X64/Thunk16.asm
Fix the issue to clear the high 16-bit of EAX before use it Thunk code.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Thunk16 / X64 / Thunk16.asm
index 0638d5faa8de9a3a6067853c506387572faaad76..6b74bbe7cb9bcdab3d4b5ac692842cb0800ac576 100644 (file)
@@ -144,7 +144,7 @@ _Thunk16    PROC    USES    rbp rbx rsi rdi r12 r13 r14 r15
     retf\r
 @@:\r
     xor     rax, rax\r
-    mov     eax, ss\r
+    mov     ax, ss\r
     shl     eax, 4\r
     add     eax, esp                    ; rax <- address of 16-bit stack\r
     mov     rsp, r15\r