]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/ReadIdtr.S
Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadIdtr.S
index fa72d3ba7de822bc718a170ca31109c6e51830dc..fefe4225d242782645803fc4226fbf738d2e327a 100644 (file)
@@ -1,7 +1,7 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2006 - 2008, 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
 #\r
 # Module Name:\r
 #\r
-#   ReadIdtr.Asm\r
+#   ReadIdtr.S\r
 #\r
 # Abstract:\r
 #\r
-#   AsmReadIdtr function\r
+#   InternalX86ReadIdtr function\r
 #\r
 # Notes:\r
 #\r
 #------------------------------------------------------------------------------\r
 \r
-\r
-\r
-     \r
+ASM_GLOBAL ASM_PFX(InternalX86ReadIdtr)\r
 \r
 #------------------------------------------------------------------------------\r
 # VOID\r
 # EFIAPI\r
-# AsmReadIdtr (\r
+# InternalX86ReadIdtr (\r
 #   OUT IA32_DESCRIPTOR  *Idtr\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global _AsmReadIdtr\r
-_AsmReadIdtr: \r
-    movl    4(%esp),%eax\r
+ASM_PFX(InternalX86ReadIdtr):\r
+    movl    4(%esp), %eax\r
     sidt    (%eax)\r
     ret\r
-\r
-\r
-\r