]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/ReadDr3.S
Fix the bug in x64 thunk code that it cannot handle the case when GDT is loaded in...
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadDr3.S
index e99391de819a857aab5a15a7ee375a77eda8ef22..5789ef1a7a22b5efde37cbe8d940007c8f98463d 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
@@ -11,7 +11,7 @@
 #\r
 # Module Name:\r
 #\r
-#   ReadDr3.Asm\r
+#   ReadDr3.S\r
 #\r
 # Abstract:\r
 #\r
@@ -21,9 +21,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 \r
-\r
-\r
-     \r
+ASM_GLOBAL ASM_PFX(AsmReadDr3)\r
 \r
 #------------------------------------------------------------------------------\r
 # UINTN\r
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global _AsmReadDr3\r
-_AsmReadDr3: \r
+ASM_PFX(AsmReadDr3):\r
     movl    %dr3, %eax\r
     ret\r
-\r
-\r
-\r