]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/DisablePaging64.asm
Fixed GCC 4.4 build issue. Also fixed issue where upper 32-bits may be lost during...
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / DisablePaging64.asm
index 5f556a4ca60d986988af930236b9c689785ba1cf..48970280549fd9726c8a3732a3c5a323fb6d33e4 100644 (file)
@@ -41,7 +41,7 @@ InternalX86DisablePaging64    PROC
     lea     rax, mTransitionEnd         ; rax <- end of transition code\r
     sub     rax, rsi                    ; rax <- The size of transition piece code \r
     add     rax, 4                      ; Round RAX up to the next 4 byte boundary\r
-    and     rax, 0fffffffch\r
+    and     al, 0fch\r
     sub     rdi, rax                    ; rdi <- Use stack to hold transition code\r
     mov     r10d, edi                   ; r10 <- The start address of transicition code below 4G\r
     push    rcx                         ; save rcx to stack\r