mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
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
This commit is contained in:
parent
a148780114
commit
a81c3daf0a
@ -267,7 +267,7 @@ ASM_PFX(InternalAsmThunk16):
|
|||||||
sgdt 0x60(%rsp) # save GDT stack in argument space
|
sgdt 0x60(%rsp) # save GDT stack in argument space
|
||||||
movzwq 0x60(%rsp), %r10 # r10 <- GDT limit
|
movzwq 0x60(%rsp), %r10 # r10 <- GDT limit
|
||||||
lea ((ASM_PFX(InternalAsmThunk16) - SavedCr4) + 0xf)(%rcx), %r11
|
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
|
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
|
movq %r11, (SavedGdt - SavedCr4 + 0x2)(%rcx) # save the base address of shadowed GDT table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user