]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix build error.
authorjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 14 Sep 2011 07:11:45 +0000 (07:11 +0000)
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 14 Sep 2011 07:11:45 +0000 (07:11 +0000)
sign of by: jyao1
reviewed by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12347 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3Save.c
MdeModulePkg/Universal/CapsulePei/UefiCapsule.c

index 27e693957295c43add12335ba0e8ba85dfa6f9ff..1bbd9c74d1fe7440062d99b315c181b81c6d6882 100644 (file)
@@ -299,7 +299,7 @@ S3CreateIdentityMappingPageTables (
       PageMapLevel4Entry->Bits.Present = 1;\r
     \r
       if (Page1GSupport) {\r
-        PageDirectory1GEntry = (VOID *) S3NvsPageTableAddress;\r
+        PageDirectory1GEntry = (PAGE_TABLE_1G_ENTRY *)(UINTN)S3NvsPageTableAddress;\r
         S3NvsPageTableAddress += SIZE_4KB;\r
     \r
         for (IndexOfPageDirectoryEntries = 0; IndexOfPageDirectoryEntries < 512; IndexOfPageDirectoryEntries++, PageDirectory1GEntry++, PageAddress += SIZE_1GB) {\r
index a6a6f57aba974bec134423c44c0ef24c43d9b56c..16ad8f31a4d2e2b713823590d1074f614698e56e 100644 (file)
@@ -127,6 +127,8 @@ CreateIdentityMappingPageTables (
   IN  EFI_PHYSICAL_ADDRESS  PageTablesAddress\r
   )\r
 {  \r
+  UINT32                                        RegEax;\r
+  UINT32                                        RegEdx;\r
   UINT8                                         PhysicalAddressBits;\r
   EFI_PHYSICAL_ADDRESS                          PageAddress;\r
   UINTN                                         IndexOfPml4Entries;\r