]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/ReadTr.c
Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadTr.c
index 7f7f1d5cdf50e14d2c0471d0aec0e8980a472c8d..1da74f6286b8e54d55b94b1ed1ecfb9942a0d0c4 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   AsmReadTr function\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\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
 **/\r
 \r
-#if _MSC_EXTENSIONS\r
 \r
+\r
+\r
+/**\r
+  Reads the current value of Task Register (TR).\r
+\r
+  Reads and returns the current value of TR. This function is only available on\r
+  IA-32 and x64.\r
+\r
+  @return The current value of TR.\r
+\r
+**/\r
 UINT16\r
 EFIAPI\r
 AsmReadTr (\r
@@ -25,4 +35,3 @@ AsmReadTr (
   }\r
 }\r
 \r
-#endif\r