From a81c3daf0a9cbad3f5333e264ecc3a365686f6ec Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 26 May 2009 12:04:46 +0000 Subject: Correct one minor instruction to clear the lower 4 bits of r11. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8391 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/X64/Thunk16.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Library/BaseLib/X64/Thunk16.S b/MdePkg/Library/BaseLib/X64/Thunk16.S index 3f94759cef..501a9e9d8b 100644 --- a/MdePkg/Library/BaseLib/X64/Thunk16.S +++ b/MdePkg/Library/BaseLib/X64/Thunk16.S @@ -267,7 +267,7 @@ ASM_PFX(InternalAsmThunk16): sgdt 0x60(%rsp) # save GDT stack in argument space movzwq 0x60(%rsp), %r10 # r10 <- GDT limit lea ((ASM_PFX(InternalAsmThunk16) - SavedCr4) + 0xf)(%rcx), %r11 - andl $0xfffffff0, r11 # r11 <- 16-byte aligned shadowed GDT table in real mode buffer + andq $0xfffffff0, %r11 # r11 <- 16-byte aligned shadowed GDT table in real mode buffer movw %r10w, (SavedGdt - SavedCr4)(%rcx) # save the limit of shadowed GDT table movq %r11, (SavedGdt - SavedCr4 + 0x2)(%rcx) # save the base address of shadowed GDT table -- cgit v1.2.3