]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/ReadGdtr.c
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 / ReadGdtr.c
index f98e9f85ced0196c95972534407c5abfef8046b3..06d331a09f95ad3eb7f766876a2cc90552698858 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AsmReadGdtr function\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\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
 \r
 **/\r
 \r
-#if _MSC_EXTENSIONS\r
 \r
+#include "BaseLibInternals.h"\r
+\r
+\r
+/**\r
+  Reads the current Global Descriptor Table Register(GDTR) descriptor.\r
+\r
+  Reads and returns the current GDTR descriptor and returns it in Gdtr. This\r
+  function is only available on IA-32 and x64.\r
+\r
+  @param  Gdtr  Pointer to a GDTR descriptor.\r
+\r
+**/\r
 VOID\r
 EFIAPI\r
 InternalX86ReadGdtr (\r
@@ -26,4 +37,3 @@ InternalX86ReadGdtr (
   }\r
 }\r
 \r
-#endif\r