summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-02 05:51:01 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-02 05:51:01 +0000
commitf5305d5a9978a443b81202a6d5102fa702fa231b (patch)
treeceb3b391971af8e44641e8c0f7c2eb571d79c0d7 /MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo
parent053b13f29649e7a8d742304fe9fe51f41c4f9847 (diff)
downloadedk2-f5305d5a9978a443b81202a6d5102fa702fa231b.tar.gz
edk2-f5305d5a9978a443b81202a6d5102fa702fa231b.tar.bz2
edk2-f5305d5a9978a443b81202a6d5102fa702fa231b.zip
Refine PCI Segment Library to avoid possible intrinsic function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7752 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo')
-rw-r--r--MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.h b/MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.h
index 00129edea6..ea9fe6665e 100644
--- a/MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.h
+++ b/MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.h
@@ -54,6 +54,6 @@ typedef struct {
**/
#define PCI_TO_PCI_ROOT_BRIDGE_IO_ADDRESS(A) \
- ((((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))
+ ((((UINT32)(A) << 4) & 0xff000000) | (((UINT32)(A) >> 4) & 0x00000700) | (((UINT32)(A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))
#endif