/** @file\r
-\r
-Copyright (c) 2006 - 2013, 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
-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
- GenPage.c\r
- \r
-Abstract:\r
Pre-Create a 4G page table (2M pages).\r
It's used in DUET x64 build needed to enter LongMode.\r
\r
(\r
Directory-Ptr Directory {512}\r
) {4}\r
+\r
+Copyright (c) 2006 - 2014, 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
+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 <stdio.h>\r
// Utility version information\r
//\r
#define UTILITY_MAJOR_VERSION 0\r
-#define UTILITY_MINOR_VERSION 1\r
+#define UTILITY_MINOR_VERSION 2\r
\r
void\r
Version (\r
\r
--*/\r
{\r
- printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
+ printf ("%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
}\r
\r
VOID\r
)\r
{\r
printf ("Usage: GenPage.exe [options] EfiLoaderImageName \n\n\\r
-Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.\n\n\\r
+Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.\n\n\\r
Utility to generate the EfiLoader image containing a page table.\n\n\\r
optional arguments:\n\\r
-h, --help Show this help message and exit\n\\r
//\r
// Open files\r
//\r
- PageFile = fopen (PageFileName, "w+b");\r
+ PageFile = fopen (LongFilePath (PageFileName), "w+b");\r
if (PageFile == NULL) {\r
Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Output File %s open failure", PageFileName);\r
return -1;\r
}\r
\r
- NoPageFile = fopen (NoPageFileName, "r+b");\r
+ NoPageFile = fopen (LongFilePath (NoPageFileName), "r+b");\r
if (NoPageFile == NULL) {\r
Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Input File %s open failure", NoPageFileName);\r
fclose (PageFile);\r