X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FX64%2FDisablePaging64.asm;h=48970280549fd9726c8a3732a3c5a323fb6d33e4;hp=5f556a4ca60d986988af930236b9c689785ba1cf;hb=bc810c8977e97c63f081f35d3ca1b2767282c1a3;hpb=47ca9c95885ec58c3c49efb2593692693748a2f1 diff --git a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm index 5f556a4ca6..4897028054 100644 --- a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm +++ b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm @@ -41,7 +41,7 @@ InternalX86DisablePaging64 PROC lea rax, mTransitionEnd ; rax <- end of transition code sub rax, rsi ; rax <- The size of transition piece code add rax, 4 ; Round RAX up to the next 4 byte boundary - and rax, 0fffffffch + and al, 0fch sub rdi, rax ; rdi <- Use stack to hold transition code mov r10d, edi ; r10 <- The start address of transicition code below 4G push rcx ; save rcx to stack