]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/WriteCr2.S
Need use 32-bit register to hold 32-bit stack address.
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / WriteCr2.S
index 667826edace705a182671ae0ab6f08dd81455a5b..b08a4e36baed507b5f83c0cc3fc325132a8efe79 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 @@
 #   UINTN  Cr2\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteCr2)\r
+ASM_GLOBAL ASM_PFX(AsmWriteCr2)\r
 ASM_PFX(AsmWriteCr2):\r
     mov    %rcx,%cr2\r
     mov    %rcx,%rax\r