]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/DisablePaging64.S
MdePkg BaseLib: Fix GCC build break
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / DisablePaging64.S
index a467fea260e251dc53a3b40729ae1637e8ef31e1..b18f06436e767cb29aef2bef7a4e96b15692f2c1 100644 (file)
@@ -1,7 +1,7 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2009, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
 # http://opensource.org/licenses/bsd-license.php\r
@@ -43,7 +43,7 @@ ASM_PFX(InternalX86DisablePaging64):
     lea    _mTransitionEnd(%rip), %rax    # rax <- end of transition code\r
     sub    %rsi, %rax                     # rax <- The size of transition piece code\r
     add    $4, %rax                       # round rax up to the next 4 byte boundary\r
-    and    $0x0fffffffc, %rax\r
+    and    $0xfc, %al\r
     sub    %rax, %rdi                     # rdi <- use stack to hold transition code \r
     mov    %edi, %r10d                    # r10 <- The start address of transicition code below 4G\r
     push   %rcx                           # save rcx to stack\r
@@ -78,4 +78,5 @@ L1:
     push   %rsi                           # push Context1\r
     callq  *%rbx                          # transfer control to EntryPoint\r
     jmp    .                              # no one should get here\r
-\r_mTransitionEnd :\r
+\r
+_mTransitionEnd :\r