mirror of https://github.com/acidanthera/audk.git
2b27b55727
https://bugzilla.tianocore.org/show_bug.cgi?id=180 The PCI_SEGMENT_LIB_ADDRESS() macro puts the Segment number into bits 32..47 of the logical address that is returned. The portable method to put Segment in this bit range is to use LShitU64(). For 64-bit CPUs, this is optimized well by the compiler. For 32-bit CPUs, a call to LSHiftU64() is included in the generated binaries. However, if the Segment parameter is 0, then no shift is required. Add a check for Segment set to 0 and provide an optimized macro implementation that does not call LShiftU64(). Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> |
||
---|---|---|
.. | ||
BaseLib.h | ||
BaseMemoryLib.h | ||
CacheMaintenanceLib.h | ||
CpuLib.h | ||
DebugLib.h | ||
DebugPrintErrorLevelLib.h | ||
DevicePathLib.h | ||
DxeCoreEntryPoint.h | ||
DxeServicesLib.h | ||
DxeServicesTableLib.h | ||
ExtendedSalLib.h | ||
ExtractGuidedSectionLib.h | ||
FileHandleLib.h | ||
HobLib.h | ||
HstiLib.h | ||
IoLib.h | ||
MemoryAllocationLib.h | ||
OrderedCollectionLib.h | ||
PalLib.h | ||
PcdLib.h | ||
PciCf8Lib.h | ||
PciExpressLib.h | ||
PciLib.h | ||
PciSegmentLib.h | ||
PeCoffExtraActionLib.h | ||
PeCoffGetEntryPointLib.h | ||
PeCoffLib.h | ||
PeiCoreEntryPoint.h | ||
PeiServicesLib.h | ||
PeiServicesTablePointerLib.h | ||
PeimEntryPoint.h | ||
PerformanceLib.h | ||
PostCodeLib.h | ||
PrintLib.h | ||
ReportStatusCodeLib.h | ||
ResourcePublicationLib.h | ||
RngLib.h | ||
S3BootScriptLib.h | ||
S3IoLib.h | ||
S3PciLib.h | ||
S3SmbusLib.h | ||
S3StallLib.h | ||
SalLib.h | ||
SerialPortLib.h | ||
SmbusLib.h | ||
SmmLib.h | ||
SmmMemLib.h | ||
SmmPeriodicSmiLib.h | ||
SmmServicesTableLib.h | ||
SynchronizationLib.h | ||
TimerLib.h | ||
UefiApplicationEntryPoint.h | ||
UefiBootServicesTableLib.h | ||
UefiDecompressLib.h | ||
UefiDriverEntryPoint.h | ||
UefiLib.h | ||
UefiRuntimeLib.h | ||
UefiRuntimeServicesTableLib.h | ||
UefiScsiLib.h | ||
UefiUsbLib.h |