summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-28 06:19:36 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-28 06:19:36 +0000
commite0e7f80cc31b625fe45be1ec48d48fd60b613c77 (patch)
tree762faa92f3a472684fd5c5dfa72d4bc422395f23 /MdeModulePkg/Library/PiDxeS3BootScriptLib
parenta661e27f7aa3f8e197af3f4a61d5ac350c82aaa7 (diff)
downloadedk2-e0e7f80cc31b625fe45be1ec48d48fd60b613c77.tar.gz
edk2-e0e7f80cc31b625fe45be1ec48d48fd60b613c77.tar.bz2
edk2-e0e7f80cc31b625fe45be1ec48d48fd60b613c77.zip
Update code to pass build on VS2008 with /Od compiler option.
Signed-off-by: lgao4 Reviewed-by: rsun3 Reviewed-by: ftian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12792 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
-rw-r--r--MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h b/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
index babd12e43c..3e2a0d2bac 100644
--- a/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
+++ b/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
@@ -42,8 +42,11 @@
#define MAX_IO_ADDRESS 0xFFFF
+//
+// Macro to convert a UEFI PCI address to a PCI Library PCI address
+//
#define PCI_ADDRESS_ENCODE(A) (UINTN)PCI_LIB_ADDRESS( \
- (((A)& 0xff000000) >> 24), (((A) &0x00ff0000) >> 16), (((A) & 0xff00) >> 8), ((RShiftU64 ((A), 32) & 0xfff) | ((A)& 0xff)) \
+ ((((UINTN)(A))& 0xff000000) >> 24), ((((UINTN)(A)) &0x00ff0000) >> 16), ((((UINTN)(A)) & 0xff00) >> 8), ((RShiftU64 ((A), 32) & 0xfff) | ((A)& 0xff)) \
)