]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/WriteMsr64.c
remove '../' from Base Library.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteMsr64.c
index 778fb9fd16677b50c58167f993b60d12dcd277b9..77a068950a6885ee4f8934cae730b984cfd99756 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AsmWriteMsr64 function\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2007, 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 common header file for this module.\r
+//\r
 \r
+\r
+/**\r
+  Writes a 64-bit value to a Machine Specific Register(MSR), and returns the\r
+  value.\r
+\r
+  Writes the 64-bit value specified by Value to the MSR specified by Index. The\r
+  64-bit value written to the MSR is returned. No parameter checking is\r
+  performed on Index or Value, and some of these may cause CPU exceptions. The\r
+  caller must either guarantee that Index and Value are valid, or the caller\r
+  must establish proper exception handlers. This function is only available on\r
+  IA-32 and X64.\r
+\r
+  @param  Index The 32-bit MSR index to write.\r
+  @param  Value The 64-bit value to write to the MSR.\r
+\r
+  @return Value\r
+\r
+**/\r
 UINT64\r
 EFIAPI\r
 AsmWriteMsr64 (\r
@@ -29,4 +49,3 @@ AsmWriteMsr64 (
   }\r
 }\r
 \r
-#endif\r