summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-26 12:04:46 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-26 12:04:46 +0000
commita81c3daf0a9cbad3f5333e264ecc3a365686f6ec (patch)
treeddf81e611c33f1c4d6d84c0f24776228dad75b75
parenta1487801142ea23a2aed51f5e2875b8391787dc9 (diff)
downloadedk2-platforms-a81c3daf0a9cbad3f5333e264ecc3a365686f6ec.tar.xz
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
-rw-r--r--MdePkg/Library/BaseLib/X64/Thunk16.S2
1 files changed, 1 insertions, 1 deletions
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