MdeModulePkg/NonDiscoverable: Compare SIZE_4GB with address type
Refine the codes to compare the definition 'SIZE_4GB' with type EFI_PHYSICAL_ADDRESS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
@ -163,7 +163,7 @@ RegisterNonDiscoverableMmioDevice (
|
||||
Desc->AddrLen = Size;
|
||||
Desc->AddrRangeMax = Base + Size - 1;
|
||||
Desc->ResType = ACPI_ADDRESS_SPACE_TYPE_MEM;
|
||||
Desc->AddrSpaceGranularity = (Base + Size > SIZE_4GB) ? 64 : 32;
|
||||
Desc->AddrSpaceGranularity = ((EFI_PHYSICAL_ADDRESS)Base + Size > SIZE_4GB) ? 64 : 32;
|
||||
Desc->AddrTranslationOffset = 0;
|
||||
}
|
||||
VA_END (Args);
|
||||
|
Reference in New Issue
Block a user