mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
MdeModulePkg/Core: fix an IA32 build failure
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1277 The failure is caused by data type conversion between UINTN and UINT64, which is checked in at 63ebde8ef6d4ff497d054ccc010904ecd4441198. Cc: Star Zeng <star.zeng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
979b7d802c
commit
e5001ab7a9
@ -463,7 +463,7 @@ IsGuardPage (
|
|||||||
IN EFI_PHYSICAL_ADDRESS Address
|
IN EFI_PHYSICAL_ADDRESS Address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN BitMap;
|
UINT64 BitMap;
|
||||||
|
|
||||||
//
|
//
|
||||||
// There must be at least one guarded page before and/or after given
|
// There must be at least one guarded page before and/or after given
|
||||||
@ -1368,7 +1368,7 @@ GuardAllFreedPages (
|
|||||||
UINT64 Address;
|
UINT64 Address;
|
||||||
UINT64 GuardPage;
|
UINT64 GuardPage;
|
||||||
INTN Level;
|
INTN Level;
|
||||||
UINTN BitIndex;
|
UINT64 BitIndex;
|
||||||
UINTN GuardPageNumber;
|
UINTN GuardPageNumber;
|
||||||
|
|
||||||
if (mGuardedMemoryMap == 0 ||
|
if (mGuardedMemoryMap == 0 ||
|
||||||
@ -1475,12 +1475,12 @@ MergeGuardPages (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Bitmap = 0;
|
Bitmap = 0;
|
||||||
Pages = EFI_SIZE_TO_PAGES (MaxAddress - MemoryMapEntry->PhysicalStart);
|
Pages = EFI_SIZE_TO_PAGES ((UINTN)(MaxAddress - MemoryMapEntry->PhysicalStart));
|
||||||
Pages -= MemoryMapEntry->NumberOfPages;
|
Pages -= (INTN)MemoryMapEntry->NumberOfPages;
|
||||||
while (Pages > 0) {
|
while (Pages > 0) {
|
||||||
if (Bitmap == 0) {
|
if (Bitmap == 0) {
|
||||||
EndAddress = MemoryMapEntry->PhysicalStart +
|
EndAddress = MemoryMapEntry->PhysicalStart +
|
||||||
EFI_PAGES_TO_SIZE (MemoryMapEntry->NumberOfPages);
|
EFI_PAGES_TO_SIZE ((UINTN)MemoryMapEntry->NumberOfPages);
|
||||||
Bitmap = GetGuardedMemoryBits (EndAddress, GUARDED_HEAP_MAP_ENTRY_BITS);
|
Bitmap = GetGuardedMemoryBits (EndAddress, GUARDED_HEAP_MAP_ENTRY_BITS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user