]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/ReadCr2.S
Need use 32-bit register to hold 32-bit stack address.
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / ReadCr2.S
index bf7446c99be7bf5a26d68b4a79ecdad8b38ff03a..26c2c2f27143b6b2d666781c40fd9792bc83940d 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006, Intel Corporation\r
+# Copyright (c) 2006 - 2008, Intel Corporation\r
 # All rights reserved. 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
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadCr2)\r
+ASM_GLOBAL ASM_PFX(AsmReadCr2)\r
 .align 16\r
 ASM_PFX(AsmReadCr2):\r
     mov     %cr2, %rax\r