Acidanthera UEFI Development Kit based on EDK II edk2-stable202311
Go to file
Michael Kinney 2b27b55727 MdePkg/PciSegmentLib: Optimize PCI_SEGMENT_LIB_ADDRESS()
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>
2016-10-27 21:57:52 -07:00
AppPkg AppPkg: Update email and URL. 2016-10-26 09:34:34 -07:00
ArmPkg ArmPkg/ArmDmaLib: add missing DxeServicesTableLib dependency 2016-10-26 08:54:45 +01:00
ArmPlatformPkg ArmPlatformPkg: remove ARM BDS 2016-10-26 18:34:17 +01:00
ArmVirtPkg ArmVirtPkg/NorFlashQemuLib: rebase to ARRAY_SIZE() 2016-10-27 10:50:19 +02:00
BaseTools edksetup.sh, BaseTools/BuildEnv: add --reconfig support 2016-10-24 13:53:16 +01:00
BeagleBoardPkg BeagleBoardPkg: move to generic BDS 2016-10-26 09:20:07 +01:00
Conf
CorebootModulePkg CorebootModulePkgPkg: Expose FindCbTag API from CbParseLib 2016-10-27 09:51:16 -07:00
CorebootPayloadPkg CorebootPayloadPkg: Add "Down" key to Boot Manager Menu 2016-10-27 10:23:01 -07:00
CryptoPkg CryptoPkg/OpensslLib: Upgrade OpenSSL version to 1.0.2j 2016-09-30 09:18:45 +08:00
DuetPkg DuetPkg/DuetBdsLib: rebase to ARRAY_SIZE() 2016-10-27 11:10:31 +02:00
EdkCompatibilityPkg EdkCompatibilityPkg/Sample/Tools: rebase to ARRAY_SIZE() 2016-10-27 11:10:54 +02:00
EdkShellBinPkg
EdkShellPkg
EmbeddedPkg EmbeddedPkg: Fix typos in comments 2016-10-19 16:31:58 +01:00
EmulatorPkg EmulatorPkg: Fix typos in comments and variables 2016-10-19 13:32:20 -07:00
FatBinPkg FatBinPkg: Change to 2-clause BSD license 2016-04-22 00:55:21 -07:00
FatPkg FatPkg/EnhancedFatDxe: rebase to ARRAY_SIZE() 2016-10-27 11:10:54 +02:00
IntelFrameworkModulePkg IntelFrameworkModulePkg/BdsDxe: rebase to ARRAY_SIZE() 2016-10-27 11:10:55 +02:00
IntelFrameworkPkg IntelFrameworkPkg: Fix typos in comments 2016-10-24 09:09:26 +08:00
IntelFsp2Pkg IntelFsp2Pkg: Added changes to enable FPDT performance measurements 2016-10-27 14:19:44 +08:00
IntelFsp2WrapperPkg IntelFsp2WrapperPkg: Add a PCD to control if signaling PciEnumerationComplete. 2016-10-28 07:46:42 +08:00
IntelFspPkg IntelFspPkg: Fix typos in comments 2016-10-24 09:26:28 +08:00
IntelFspWrapperPkg IntelFspWrapperPkg: Fix typos in comments 2016-10-24 09:26:30 +08:00
IntelSiliconPkg IntelSiliconPkg: Fixed bug in IgdOpregion spec 2016-10-18 03:32:41 -07:00
MdeModulePkg MdeModulePkg/TerminalDxe: Fix IA32 VS2015x86 build break 2016-10-27 11:29:52 -07:00
MdePkg MdePkg/PciSegmentLib: Optimize PCI_SEGMENT_LIB_ADDRESS() 2016-10-27 21:57:52 -07:00
NetworkPkg NetworkPkg/TcpDxe: rebase to ARRAY_SIZE() 2016-10-27 11:10:58 +02:00
Nt32Pkg Nt32Pkg/WinNtSerialIoDxe: rebase to ARRAY_SIZE() 2016-10-27 11:10:58 +02:00
Omap35xxPkg Omap35xxPkg: enable -DDISABLE_NEW_DEPRECATED_INTERFACES 2016-10-26 08:55:16 +01:00
OptionRomPkg OptionRomPkg/AtapiPassThruDxe: rebase to ARRAY_SIZE() 2016-10-27 11:10:58 +02:00
OvmfPkg OvmfPkg: Make more use of ARRAY_SIZE() 2016-10-27 18:21:06 +02:00
PcAtChipsetPkg PcAtChipsetPkg/HpetTimerDxe: Fix race condition in SetTimerPeriod() 2016-10-27 21:46:42 -07:00
PerformancePkg PerformancePkg/Dp_App: rebase to ARRAY_SIZE() 2016-10-27 11:10:59 +02:00
QuarkPlatformPkg QuarkPlatformPkg: Fix typos in comments 2016-10-25 13:44:03 -07:00
QuarkSocPkg QuarkSocPkg/Library: Remove extra UefiBaseType.h includes 2016-10-27 21:32:46 -07:00
SecurityPkg SecurityPkg/AuthVariableLib: rebase to ARRAY_SIZE() 2016-10-27 11:15:20 +02:00
ShellBinPkg ShellBinPkg Arm/AArch64 Shell binary update 2016-08-02 12:25:13 +02:00
ShellPkg ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRAY_SIZE() 2016-10-27 11:15:20 +02:00
SourceLevelDebugPkg SourceLevelDebugPkg: Fix typos in comments 2016-10-24 09:10:15 +08:00
StdLib StdLib/LibC ARM AARCH64: do not redefine compiler intrinsics 2016-08-09 10:10:12 +02:00
StdLibPrivateInternalFiles
UefiCpuPkg UefiCpuPkg: Fix typos in comments 2016-10-24 09:09:48 +08:00
UnixPkg
Vlv2DeviceRefCodePkg Vlv2DeviceRefCodePkg/ValleyView2Soc: Remove the unused code 2016-08-03 11:02:19 +08:00
Vlv2TbltDevicePkg Vlv2TbltDevicePkg/SmBiosMiscDxe: rebase to ARRAY_SIZE() 2016-10-27 11:15:21 +02:00
.gitignore
BuildNotes2.txt BaseTools: Updated BuildNotes URLs 2016-03-25 09:46:44 +08:00
Edk2Setup.bat Edk2Setup.bat: Support building platforms with Python source 2016-10-24 10:49:19 +08:00
Maintainers.txt Maintainers.txt: Change maintainer of VLV2 packages. 2016-10-27 21:08:23 +08:00
edksetup.bat edksetup.bat: make sure BASE_TOOLS_PATH be set correctly 2016-10-26 13:45:45 +08:00
edksetup.sh edksetup.sh, BaseTools/BuildEnv: add --reconfig support 2016-10-24 13:53:16 +01:00