From 54d3b84e3ef4c45e9d41aeca1b7f08ea0035a74f Mon Sep 17 00:00:00 2001 From: jyao1 Date: Mon, 19 Sep 2011 13:02:05 +0000 Subject: Correct 1G page table generation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12380 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'MdeModulePkg/Core/DxeIplPeim') diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c index 6666a02c3d..e3ed4b6762 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -144,8 +144,7 @@ CreateIdentityMappingPageTables ( PageMapLevel4Entry->Bits.Present = 1; if (Page1GSupport) { - PageDirectory1GEntry = (VOID *) BigPageAddress; - BigPageAddress += SIZE_4KB; + PageDirectory1GEntry = (VOID *) PageDirectoryPointerEntry; for (IndexOfPageDirectoryEntries = 0; IndexOfPageDirectoryEntries < 512; IndexOfPageDirectoryEntries++, PageDirectory1GEntry++, PageAddress += SIZE_1GB) { // -- cgit v1.2.3