From e0e7f80cc31b625fe45be1ec48d48fd60b613c77 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 28 Nov 2011 06:19:36 +0000 Subject: 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 --- MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h') 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)) \ ) -- cgit v1.2.3