]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/DxeIplPeim/Ia32/VirtualMemory.c
Code scrub DxeIpl to add back the CONST modifier and solve a typecast warning.
[mirror_edk2.git] / MdeModulePkg / Core / DxeIplPeim / Ia32 / VirtualMemory.c
index f4a6a4faba4d1339083b6cb673b7137144094ab4..25fb37ea8e218c8b113fc1cdd5fe476e90743d53 100644 (file)
@@ -1,19 +1,4 @@
-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation                                                         \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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-\r
-Module Name:\r
-  VirtualMemory.c\r
-  \r
-Abstract:\r
-\r
+/** @file\r
   x64 Virtual Memory Management Services in the form of an IA-32 driver.  \r
   Used to establish a 1:1 Virtual to Physical Mapping that is required to\r
   enter Long Mode (x64 64-bit mode).\r
@@ -29,38 +14,42 @@ Abstract:
     1) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 1:Basic Architecture, Intel\r
     2) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 2:Instruction Set Reference, Intel\r
     3) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 3:System Programmer's Guide, Intel\r
-  \r
---*/  \r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/  \r
 \r
+#include "DxeIpl.h"\r
 #include "VirtualMemory.h"\r
 \r
-UINTN\r
-CreateIdentityMappingPageTables (\r
-  VOID\r
-  )\r
-/*++\r
 \r
-Routine Description:\r
 \r
-  Allocates and fills in the Page Directory and Page Table Entries to\r
-  establish a 1:1 Virtual to Physical mapping.\r
 \r
-Arguments:\r
 \r
-  NumberOfProcessorPhysicalAddressBits - Number of processor address bits to use.\r
-                                         Limits the number of page table entries \r
-                                         to the physical address space.\r
 \r
-Returns:\r
+/**\r
+  Allocates and fills in the Page Directory and Page Table Entries to\r
+  establish a 1:1 Virtual to Physical mapping.\r
+\r
+  @param  NumberOfProcessorPhysicalAddressBits  Number of processor address bits \r
+                                                to use. Limits the number of page \r
+                                                table entries  to the physical \r
+                                                address space. \r
 \r
-  EFI_SUCCESS           The 1:1 Virtual to Physical identity mapping was created\r
+  @return EFI_SUCCESS           The 1:1 Virtual to Physical identity mapping was created\r
 \r
---*/\r
+**/\r
+UINTN\r
+CreateIdentityMappingPageTables (\r
+  VOID\r
+  )\r
 {  \r
   UINT8                                         PhysicalAddressBits;\r
   EFI_PHYSICAL_ADDRESS                          PageAddress;\r
@@ -168,6 +157,6 @@ Returns:
        );\r
   }\r
 \r
-  return (UINTN)PageMap; // FIXME\r
+  return (UINTN)PageMap;\r
 }\r
 \r