]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/ReadDr2.c
Fix the bug that if code is run above 4G, AsmDisablePaging64 will be failed
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadDr2.c
index bbacec40bb1252630bd100b3ac29afb00757b8ee..4eb8ff7db441c98a97b928cf5cbab09da35c93be 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AsmReadDr2 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
+\r
+\r
+/**\r
+  Reads the current value of Debug Register 2 (DR2).\r
+\r
+  Reads and returns the current value of DR2. This function is only available\r
+  on IA-32 and x64. This returns a 32-bit value on IA-32 and a 64-bit value on\r
+  x64.\r
+\r
+  @return The value of Debug Register 2 (DR2).\r
+\r
+**/\r
 UINTN\r
 EFIAPI\r
 AsmReadDr2 (\r
@@ -25,4 +36,3 @@ AsmReadDr2 (
   }\r
 }\r
 \r
-#endif\r