Revision: 14472
          http://sourceforge.net/p/edk2/code/14472
Author:   niruiyu
Date:     2013-07-16 03:06:24 +0000 (Tue, 16 Jul 2013)
Log Message:
-----------
Fix IA32 build failure.

Signed-off-by: Ruiyu Ni <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/Library/LoadLinuxLib/Linux.c

Modified: trunk/edk2/OvmfPkg/Library/LoadLinuxLib/Linux.c
===================================================================
--- trunk/edk2/OvmfPkg/Library/LoadLinuxLib/Linux.c     2013-07-16 03:02:00 UTC 
(rev 14471)
+++ trunk/edk2/OvmfPkg/Library/LoadLinuxLib/Linux.c     2013-07-16 03:06:24 UTC 
(rev 14472)
@@ -349,15 +349,15 @@
     if ((LastE820 != NULL) &&
         (LastE820->type == (UINT32) E820Type) &&
         (MemoryMap->PhysicalStart == LastEndAddr)) {
-      LastE820->size += EFI_PAGES_TO_SIZE (MemoryMap->NumberOfPages);
-      LastEndAddr += EFI_PAGES_TO_SIZE (MemoryMap->NumberOfPages);
+      LastE820->size += EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages);
+      LastEndAddr += EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages);
     } else {
       if (E820EntryCount >= (sizeof (Bp->e820_map) / sizeof 
(Bp->e820_map[0]))) {
         break;
       }
       E820->type = (UINT32) E820Type;
       E820->addr = MemoryMap->PhysicalStart;
-      E820->size = EFI_PAGES_TO_SIZE (MemoryMap->NumberOfPages);
+      E820->size = EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages);
       LastE820 = E820;
       LastEndAddr = E820->addr + E820->size;
       E820++;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to