mirror of https://github.com/acidanthera/audk.git
Fix IA32 build failure.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14472 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d13e7bda1f
commit
0086fca024
|
@ -349,15 +349,15 @@ SetupLinuxMemmap (
|
|||
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++;
|
||||
|
|
Loading…
Reference in New Issue