[edk2] [PATCH 2/3] MdePkg BaseMemoryLib: Add implementation of API IsZeroBuffer()

2016-08-03 Thread Hao Wu
Cc: Michael D Kinney Cc: Liming Gao Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include/Library/BaseMemoryLib.h | 23 MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf | 1 + MdePkg/Library/BaseMemoryLib

[edk2] [PATCH 3/3] SecurityPkg Tcg2: Remove internal implementation of IsZeroBuffer()

2016-08-03 Thread Hao Wu
This commit removes the internal implementation of the function IsZeroBuffer(). Instead, it will use the one from BaseMemoryLib. Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 27

[edk2] [PATCH 1/3] MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid()

2016-08-03 Thread Hao Wu
Cc: Michael D Kinney Cc: Liming Gao Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include/Library/BaseMemoryLib.h | 20 MdePkg/Library/BaseMemoryLib/MemLibGuid.c | 31 - MdePkg

[edk2] [PATCH 01/17] FatPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- FatPkg

[edk2] [PATCH 04/17] IntelFsp2Pkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 07/17] IntelFspWrapperPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 00/17] Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
This patch series will add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Hao Wu (17): FatPkg DSC: Add build option to disable deprecated APIs

[edk2] [PATCH 03/17] IntelFrameworkPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 06/17] IntelFspPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 08/17] MdeModulePkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 12/17] PerformancePkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
: Hao Wu --- PerformancePkg/PerformancePkg.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PerformancePkg/PerformancePkg.dsc b/PerformancePkg/PerformancePkg.dsc index ac53c4e..4278cbd 100644 --- a/PerformancePkg/PerformancePkg.dsc +++ b/PerformancePkg/PerformancePkg.dsc @@ -80,3 +80,6

[edk2] [PATCH 10/17] NetworkPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Siyuan Fu Cc: Jiaxin Wu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 14/17] ShellPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jaben Carsey Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao

[edk2] [PATCH 15/17] SourceLevelDebugPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 16/17] UefiCpuPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- UefiCpuPkg

[edk2] [PATCH 09/17] MdePkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
: Hao Wu --- MdePkg/MdePkg.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index 7fe9e6b..ab57689 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -178,3 +178,6 @@ [Components.ARM, Components.AARCH64] MdePkg/Library/BaseStackCheckLib

[edk2] [PATCH 05/17] IntelFsp2WrapperPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 17/17] CryptoPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Qin Long Cc: Ting Ye Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 02/17] IntelFrameworkModulePkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 13/17] SecurityPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH 11/17] PcAtChipsetPkg DSC: Add build option to disable deprecated APIs

2016-08-04 Thread Hao Wu
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH v2 2/6] SecurityPkg Tcg2: Rename internal API IsZeroBuffer to InternalIsZeroBuffer

2016-08-17 Thread Hao Wu
Before adding API IsZeroBuffer() in BaseMemoryLib at MdePkg, rename the internal implementations of IsZeroBuffer() within SecurityPkg/Tcg modules to avoid breaking bisection. Cc: Jiewen Yao Cc: Chao Zhang Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao

[edk2] [PATCH v2 3/6] MdePkg BaseMemoryLib: Add C implementation of API IsZeroBuffer()

2016-08-17 Thread Hao Wu
Add the implementation of API IsZeroBuffer() via C language for the following library instances: BaseMemoryLib PeiMemoryLib UefiMemoryLib Cc: Michael D Kinney Cc: Liming Gao Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include

[edk2] [PATCH v2 6/6] SecurityPkg Tcg2: Remove use of module internal API InternalIsZeroBuffer()

2016-08-17 Thread Hao Wu
This commit removes the internal implementation of the function InternalIsZeroBuffer(). Instead, it will use the API IsZeroBuffer() from BaseMemoryLib in MdePkg. Cc: Jiewen Yao Cc: Chao Zhang Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH v2 0/6] Add APIs IsZeroBuffer and IsZeroGuid in BaseMemoryLib

2016-08-17 Thread Hao Wu
BaseMemoryLibSse2 library instance. 3. Modify patches for SecurityPkg to avoid breaking bisection between patches. Hao Wu (6): MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid() SecurityPkg Tcg2: Rename internal API IsZeroBuffer to InternalIsZeroBuffer MdePkg BaseMemoryLib: Add C

[edk2] [PATCH v2 4/6] MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer()

2016-08-17 Thread Hao Wu
: Hao Wu --- .../Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf | 5 +- .../BaseMemoryLibMmx/Ia32/IsZeroBuffer.nasm| 55 ++ .../Library/BaseMemoryLibMmx/IsZeroBufferWrapper.c | 54 + MdePkg/Library/BaseMemoryLibMmx/MemLibInternals.h | 19

[edk2] [PATCH v2 5/6] MdePkg BaseMemoryLibSse2: Add SSE2 implementation of API IsZeroBuffer()

2016-08-17 Thread Hao Wu
Add the implementation of API IsZeroBuffer() via assembly in BaseMemoryLibSse2. The assembly codes use SSE2 XMM registers and related instructions. Cc: Michael D Kinney Cc: Liming Gao Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu

[edk2] [PATCH v2 1/6] MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid()

2016-08-17 Thread Hao Wu
Cc: Michael D Kinney Cc: Liming Gao Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include/Library/BaseMemoryLib.h | 22 +- MdePkg/Library/BaseMemoryLib/MemLibGuid.c | 31 - MdePkg

[edk2] [PATCH 6/7] MdeModulePkg NvmExpressDxe: Add check on the attributes of NVME controller

2016-08-28 Thread Hao Wu
. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b

[edk2] [PATCH 1/7] MdeModulePkg NvmExpressDxe: Avoid crashing 'Mode' during OpenProtocol

2016-08-28 Thread Hao Wu
responding Protocol Interface. The current code mistakenly pass '&Private->Passthru' (a pointer of the EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL) as the third parameter. This will crash the data in 'Mode' filed. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreem

[edk2] [PATCH 7/7] MdeModulePkg NvmExpressDxe: Add check for command packet in PassThru

2016-08-28 Thread Hao Wu
;MetadataLength' field in EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET is not 0 when the corresponding 'MetadataBuffer' field has a non-NULL value. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 7 +++

[edk2] [PATCH 0/7] Fix some bugs in NvmExpressDxe driver

2016-08-28 Thread Hao Wu
This series fixed some bugs in the NvmExpressDxe driver Hao Wu (7): MdeModulePkg NvmExpressDxe: Avoid crashing 'Mode' during OpenProtocol MdeModulePkg NvmExpressDxe: Refine BuildDevicePath API to follow spec MdeModulePkg NvmExpressDxe: Refine GetNameSpace API to follow spec Md

[edk2] [PATCH 5/7] MdeModulePkg NvmExpressDxe: Add buffer alignment check in PassThru API

2016-08-28 Thread Hao Wu
n Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- .../Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 55 +- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b/MdeModulePkg/B

[edk2] [PATCH 3/7] MdeModulePkg NvmExpressDxe: Refine GetNameSpace API to follow spec

2016-08-28 Thread Hao Wu
return EFI_SUCCESS. This commit adds additional check in the GetNameSpace API to make sure correct status is returned. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 12 +++- 1 file

[edk2] [PATCH 4/7] MdeModulePkg NvmExpressDxe: Refine GetNextNamespace API to follow spec

2016-08-28 Thread Hao Wu
: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b/MdeModulePkg/Bus

[edk2] [PATCH 2/7] MdeModulePkg NvmExpressDxe: Refine BuildDevicePath API to follow spec

2016-08-28 Thread Hao Wu
Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b

[edk2] [PATCH 3/3] SecurityPkg: Use IsZeroGuid API for zero GUID checking

2016-08-29 Thread Hao Wu
Instead of comparing a GUID with gZeroGuid via the CompareGuid API, the commit uses the IsZeroGuid API to check if the given GUID is a zero GUID. Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- SecurityPkg/Library/DxeTpm2MeasureBootLib

[edk2] [PATCH 0/3] Use IsZeroGuid API for zero GUID checking

2016-08-29 Thread Hao Wu
To check if the given GUID is a zero GUID, current codes use the CompareGuid() API (from BaseMemoryLib) with gZeroGuid. This series will use the IsZeroGuid() API (also from BaseMemoryLib) instead to do this check. Hao Wu (3): IntelFrameworkModulePkg: Use IsZeroGuid API for zero GUID checking

[edk2] [PATCH 2/3] MdeModulePkg: Use IsZeroGuid API for zero GUID checking

2016-08-29 Thread Hao Wu
Instead of comparing a GUID with gZeroGuid via the CompareGuid API, the commit uses the IsZeroGuid API to check if the given GUID is a zero GUID. Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Application

[edk2] [PATCH 1/3] IntelFrameworkModulePkg: Use IsZeroGuid API for zero GUID checking

2016-08-29 Thread Hao Wu
Instead of comparing a GUID with gZeroGuid via the CompareGuid API, the commit uses the IsZeroGuid API to check if the given GUID is a zero GUID. Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- IntelFrameworkModulePkg/Universal/DataHubDxe

[edk2] [PATCH v2 00/10] Fix some bugs in NvmExpressDxe driver

2016-08-31 Thread Hao Wu
commands. 3. Set the non-blocking I/O feature support bit in structure EFI_NVM_EXPRESS_PASS_THRU_MODE Hao Wu (10): MdeModulePkg NvmExpressDxe: Avoid crashing 'Mode' during OpenProtocol MdeModulePkg NvmExpressDxe: Refine BuildDevicePath API to follow spec MdeModulePkg NvmExpressD

[edk2] [PATCH v2 05/10] MdeModulePkg NvmExpressDxe: Add buffer alignment check in PassThru API

2016-08-31 Thread Hao Wu
n Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- .../Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 55 +- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b/MdeModulePkg/B

[edk2] [PATCH v2 04/10] MdeModulePkg NvmExpressDxe: Refine GetNextNamespace API to follow spec

2016-08-31 Thread Hao Wu
: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b/MdeModulePkg/Bus

[edk2] [PATCH v2 08/10] MdeModulePkg NvmExpressDxe: Add NamespaceId validity check in PassThru

2016-08-31 Thread Hao Wu
ntribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 8 1 file changed, 8 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c index 2209ee6..96e9

[edk2] [PATCH v2 10/10] MdeModulePkg NvmExpressDxe: Set the non-blocking I/O feature support bit

2016-08-31 Thread Hao Wu
ntribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c index 255fa2b..39f49bd 10

[edk2] [PATCH v2 07/10] MdeModulePkg NvmExpressDxe: Add check for command packet in PassThru

2016-08-31 Thread Hao Wu
n EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value is not 0 when the corresponding 'MetadataBuffer' field has a non-NULL value. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- .../Bus/Pci/NvmExpressDxe/NvmExpressPa

[edk2] [PATCH v2 01/10] MdeModulePkg NvmExpressDxe: Avoid crashing 'Mode' during OpenProtocol

2016-08-31 Thread Hao Wu
responding Protocol Interface. The current code mistakenly pass '&Private->Passthru' (a pointer of the EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL) as the third parameter. This will crash the data in 'Mode' filed. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreem

[edk2] [PATCH v2 03/10] MdeModulePkg NvmExpressDxe: Refine GetNameSpace API to follow spec

2016-08-31 Thread Hao Wu
return EFI_SUCCESS. This commit adds additional check in the GetNameSpace API to make sure correct status is returned. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 12 +++- 1 file

[edk2] [PATCH v2 02/10] MdeModulePkg NvmExpressDxe: Refine BuildDevicePath API to follow spec

2016-08-31 Thread Hao Wu
Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b

[edk2] [PATCH v2 06/10] MdeModulePkg NvmExpressDxe: Add check on the attributes of NVME controller

2016-08-31 Thread Hao Wu
. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b

[edk2] [PATCH v2 09/10] MdeModulePkg NvmExpressDxe: Fix 'Event' won't be signaled for Admin cmds

2016-08-31 Thread Hao Wu
This commit fixes the issue that the caller event passed to EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.PassThru() will not be signaled for NVME Admin commands. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe

[edk2] [PATCH] MdeModulePkg/NonDiscoverable: Compare SIZE_4GB with address type

2017-01-10 Thread Hao Wu
Refine the codes to compare the definition 'SIZE_4GB' with type EFI_PHYSICAL_ADDRESS. Cc: Ard Biesheuvel Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- .../Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDevic

[edk2] [PATCH] MdeModulePkg/TerminalDxe: Refine SetTerminalDevicePath

2017-01-11 Thread Hao Wu
Pass '&Node.Header' instead of '&Node' as the 1st parameter to function SetDevicePathNodeLength(). Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 2 +- 1 fil

[edk2] [PATCH 0/2] PrintLib: Refine the SPrint functions

2017-01-16 Thread Hao Wu
AsciiBSPrintUnicodeFormat AsciiSPrintUnicodeFormat SPrintLength SPrintLengthAsciiFormat Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Hao Wu (2): MdePkg/BasePrintLib: Refine the SPrint functions MdeModulePkg/PrintLib: Refine the SPrint functions .../DxePrintLibPrint2Protocol.inf

[edk2] [PATCH 2/2] MdeModulePkg/PrintLib: Refine the SPrint functions

2017-01-16 Thread Hao Wu
gth Ascii/Unicode characters. And for those ASSERT cases, 0 will be returned by those 2 APIs. Now these APIs in the MdeModulePkg/DxePrintLibPrint2Protocol instance follow the same rules with MdePkg/BasePrintLib. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinne

[edk2] [PATCH 1/2] MdePkg/BasePrintLib: Refine the SPrint functions

2017-01-16 Thread Hao Wu
for those ASSERT cases, 0 will be returned by those 2 APIs. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include/Library/PrintLib.h | 498 ++--- MdePkg/Library/

[edk2] [PATCH 0/2] PrintLib: Add safe print functions [A|U]ValueToStringS

2017-01-16 Thread Hao Wu
Add the following 2 safe print functions in PrintLib: UnicodeValueToStringS AsciiValueToStringS Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Hao Wu (2): MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS MdeModulePkg/PrintLib: Add safe print functions [A|U

[edk2] [PATCH 1/2] MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS

2017-01-16 Thread Hao Wu
The input Width is not smaller than MAXIMUM_VALUE_CHARACTERS. Return RETURN_BUFFER_TOO_SMALL when: 1). The input BufferSize cannot hold the converted value. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeP

[edk2] [PATCH 2/2] MdeModulePkg/PrintLib: Add safe print functions [A|U]ValueToStringS

2017-01-16 Thread Hao Wu
Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- .../Library/DxePrintLibPrint2Protocol/PrintLib.c | 219 - MdeModulePkg/Universal/PrintDxe/Print.c| 73 ++- 2 files changed, 287 insertions(+)

[edk2] [PATCH 0/1] Refine casting expression result to bigger size

2017-01-21 Thread Hao Wu
+ b) -> (UINTN)(UINT32) (a + b) or (UINT64) (a + b) -> (UINT64)(UINT32) (a + b) 2). Otherwise (UINT64) (a + b) -> (UINT64)(UINTN) (a + b) Hao Wu (1): MdePkg: Refine casting expression result to bigger size MdePkg/Library/BaseLib/String.c | 4 ++-- MdePk

[edk2] [PATCH 1/1] MdePkg: Refine casting expression result to bigger size

2017-01-21 Thread Hao Wu
+ b) Cc: Michael Kinney Cc: Liming Gao Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Library/BaseLib/String.c | 4 ++-- MdePkg/Library/BasePeCoffLib/BasePeCoff.c| 4 ++-- MdePk

[edk2] [PATCH v2 1/1] MdePkg: Refine casting expression result to bigger size

2017-01-23 Thread Hao Wu
ssion will not overflow within the rank of "int", remove the explicit type casts: c = a + b; 2). When the expression is possible to overflow the range of unsigned int/ int: c = (UINT64)a + b; Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Libr

[edk2] [PATCH v2 0/1] Refine casting expression result to bigger size

2017-01-23 Thread Hao Wu
) (a + b) or (UINT64) (a + b) -> (UINT64)(UINT32) (a + b) 2). Otherwise (UINT64) (a + b) -> (UINT64)(UINTN) (a + b) Cc: Michael Kinney Cc: Liming Gao Cc: Eric Dong Cc: Laszlo Ersek Cc: Ard Biesheuvel Hao Wu (1): MdePkg: Refine casting expression result to bigger size MdePkg/Libra

[edk2] [PATCH 1/6] MdeModulePkg: Refine type cast for pointer subtraction

2017-01-23 Thread Hao Wu
ontributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 4 ++-- MdeModulePkg/Include/Library/NetLib.h | 6 +++--- MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c

[edk2] [PATCH 0/6] Refine type cast for pointer subtraction

2017-01-23 Thread Hao Wu
igger size. The series will cast each pointer to UINTN first and then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Hao Wu (6): MdeModulePkg: Refine type cast for pointer subtraction CryptoPkg: Refine type cast for pointer subtraction IntelFrameworkModulePkg: Refine typ

[edk2] [PATCH v2 0/6] Refine type cast for pointer subtraction

2017-01-24 Thread Hao Wu
warn that the pointer subtraction might overflow first and then the result is being cast to a bigger size. The series will cast each pointer to UINTN first and then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Laszlo Ersek Hao Wu (6): MdeModulePkg: Refine type cast for

[edk2] [PATCH v2 1/6] MdeModulePkg: Refine type cast for pointer subtraction

2017-01-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 4 ++-- MdeModulePkg/Include/Library/NetLib.h |

[edk2] [PATCH v2 0/3] PrintLib: Refine the SPrint functions

2017-02-08 Thread Hao Wu
AsciiSPrint AsciiVSPrintUnicodeFormat AsciiBSPrintUnicodeFormat AsciiSPrintUnicodeFormat SPrintLength SPrintLengthAsciiFormat Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Hao Wu (3): MdePkg/BasePrintLib: Refine the SPrint functions MdeModulePkg/PrintLib: Refine the SPrint functions

[edk2] [PATCH v2 1/3] MdePkg/BasePrintLib: Refine the SPrint functions

2017-02-08 Thread Hao Wu
for those ASSERT cases, 0 will be returned by those 2 APIs. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include/Library/PrintLib.h | 498 +++- MdePkg/Library/BasePrintLib/B

[edk2] [PATCH v2 3/3] MdeModulePkg: Refine the services comments in EFI_PRINT2_PROTOCOL

2017-02-08 Thread Hao Wu
buted-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Include/Protocol/Print2.h | 361 +++- 1 file changed, 205 insertions(+), 156 deletions(-) diff --git a/MdeModulePkg/Include/Protocol/Print2.h b/MdeModulePkg/Include/Protocol/Print2.h index

[edk2] [PATCH v2 2/3] MdeModulePkg/PrintLib: Refine the SPrint functions

2017-02-08 Thread Hao Wu
gth Ascii/Unicode characters. And for those ASSERT cases, 0 will be returned by those 2 APIs. Now these APIs in the MdeModulePkg/DxePrintLibPrint2Protocol instance follow the same rules with MdePkg/BasePrintLib. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: Tiano

[edk2] [PATCH v2 1/4] MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS

2017-02-08 Thread Hao Wu
The input Width is not smaller than MAXIMUM_VALUE_CHARACTERS. Return RETURN_BUFFER_TOO_SMALL when: 1). The input BufferSize cannot hold the converted value. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeP

[edk2] [PATCH v2 0/4] PrintLib: Add safe print functions [A|U]ValueToStringS

2017-02-08 Thread Hao Wu
MdeModulePkg/Library/DxePrintLibPrint2Protocol will use EFI_PRINT2S_PROTOCOL instead of EFI_PRINT2_PROTOCOL to implement its APIs. V1 history: Add the following 2 safe print functions in PrintLib: UnicodeValueToStringS AsciiValueToStringS Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Hao Wu (4

[edk2] [PATCH v2 2/4] MdeModulePkg: Add the EFI_PRINT2S_PROTOCOL

2017-02-08 Thread Hao Wu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Include/Protocol/Print2.h | 150 +++- MdeModulePkg/MdeModulePkg.dec| 3 +- MdeModulePkg/Universal/PrintDxe/Print.c | 18 ++- MdeModulePkg/Universal/PrintDxe

[edk2] [PATCH v2 3/4] MdeModulePkg/PrintLib: Use EFI_PRINT2S_PROTOCOL for this instance

2017-02-08 Thread Hao Wu
The commit updates the PrintLib instance MdeModulePkg/Library/DxePrintLibPrint2Protocol to use EFI_PRINT2S_PROTOCOL to implement the APIs. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Library

[edk2] [PATCH v2 4/4] MdeModulePkg/PrintLib: Add safe print functions [A|U]ValueToStringS

2017-02-08 Thread Hao Wu
ng Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 127 1 file changed, 127 insertions(+) diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/Pri

[edk2] [PATCH v2] MdePkg/BaseLib: Refine logic for (Ascii)StrnLenS to handle MaxSize = 0

2017-02-13 Thread Hao Wu
https://bugzilla.tianocore.org/show_bug.cgi?id=378 Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Library/BaseLib/SafeString.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[edk2] [PATCH] MdePkg/BaseLib: Refine logic for (Ascii)StrnLenS to handle MaxSize = 0

2017-02-13 Thread Hao Wu
https://bugzilla.tianocore.org/show_bug.cgi?id=378 Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Library/BaseLib/SafeString.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[edk2] [PATCH] NetworkPkg/IpSecDxe: Add check to avoid possible divide by zero

2017-02-19 Thread Hao Wu
Cc: Wu Jiaxin Cc: Siyuan Fu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- NetworkPkg/IpSecDxe/Ikev2/Utility.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/NetworkPkg/IpSecDxe/Ikev2/Utility.c b/NetworkPkg/IpSecDxe/Ikev2

[edk2] [PATCH] MdeModulePkg/SdMmc: Avoid assigning 0 to the BlockSize of Trb

2017-02-19 Thread Hao Wu
Refine code to avoid potential divide by zero when calculating block number. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c | 4 ++-- MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c | 4

[edk2] [PATCH 1/7] IntelFrameworkModulePkg: Replace [Ascii|Unicode]ValueToString

2017-02-21 Thread Hao Wu
It is the follow up of commits 51f0ceb..9e32e97 to replace AsciiValueToString/UnicodeValueToString with AsciiValueToStringS/UnicodeValueToStringS. Cc: Jiewen Yao Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- IntelFrameworkModulePkg/Universal

[edk2] [PATCH 0/7] Mark [Ascii|Unicode]ValueToString as deprecated

2017-02-21 Thread Hao Wu
', indicating they are deprecated. Cc: Jiewen Yao Hao Wu (7): IntelFrameworkModulePkg: Replace [Ascii|Unicode]ValueToString MdeModulePkg: Replace [Ascii|Unicode]ValueToString Nt32Pkg: Replace [Ascii|Unicode]ValueToString SignedCapsulePkg: Replace [Ascii|Unicode]ValueToString Mde

[edk2] [PATCH 7/7] MdePkg/BasePrintLib: Add deprecated flag for APIs [A|U]ValueToString

2017-02-21 Thread Hao Wu
Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdePkg/Include/Library/PrintLib.h | 12 MdePkg/Library/BasePrintLib/PrintLib.c | 12 2 files changed, 24 insertions(+) diff --git

[edk2] [PATCH 6/7] MdeModulePkg/PrintLib: Add deprecated flag for APIs [A|U]ValueToString

2017-02-21 Thread Hao Wu
Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 12 1 file changed, 12 insertions(+) diff --git a/MdeModulePkg/Library

[edk2] [PATCH 3/7] Nt32Pkg: Replace [Ascii|Unicode]ValueToString

2017-02-21 Thread Hao Wu
It is the follow up of commits 51f0ceb..9e32e97 to replace AsciiValueToString/UnicodeValueToString with AsciiValueToStringS/UnicodeValueToStringS. Cc: Jiewen Yao Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- Nt32Pkg/Library

[edk2] [PATCH 2/7] MdeModulePkg: Replace [Ascii|Unicode]ValueToString

2017-02-21 Thread Hao Wu
It is the follow up of commits 51f0ceb..9e32e97 to replace AsciiValueToString/UnicodeValueToString with AsciiValueToStringS/UnicodeValueToStringS. Cc: Jiewen Yao Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg

[edk2] [PATCH 4/7] SignedCapsulePkg: Replace [Ascii|Unicode]ValueToString

2017-02-21 Thread Hao Wu
It is the follow up of commits 51f0ceb..9e32e97 to replace AsciiValueToString/UnicodeValueToString with AsciiValueToStringS/UnicodeValueToStringS. Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- SignedCapsulePkg/Universal/RecoveryModuleLoadPei

[edk2] [PATCH 5/7] MdeModulePkg/PrintDxe: Handle the deprecation of [A|U]ValueToString

2017-02-21 Thread Hao Wu
defined (indicating the deprecation of the PrintLib APIs), the above two services will ASSERT and will return zero to reflect not being supported. Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg

[edk2] [PATCH v3 6/6] ShellPkg: Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Jaben Carsey Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Acked-by: Laszlo Ersek --- ShellPkg/Application/Shell/ShellParametersProtocol.c| 6 +++--- ShellPkg/Libr

[edk2] [PATCH v3 3/6] IntelFrameworkModulePkg: Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Acked-by: Laszlo Ersek --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c | 4 ++-- IntelFrameworkModulePkg/Library/Gener

[edk2] [PATCH v3 0/6] Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
cast to a bigger size. The series will cast each pointer to UINTN first and then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Hao Wu (6): MdeModulePkg: Refine type cast for pointer subtraction CryptoPkg: Refine type cast for pointer subtraction IntelFrameworkModulePkg:

[edk2] [PATCH v3 4/6] NetworkPkg: Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Siyuan Fu Cc: Jiaxin Wu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Acked-by: Laszlo Ersek --- NetworkPkg/HttpDxe/HttpImpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[edk2] [PATCH v3 5/6] SecurityPkg: Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Acked-by: Laszlo Ersek --- SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c| 16 SecurityPk

[edk2] [PATCH v3 1/6] MdeModulePkg: Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Acked-by: Laszlo Ersek --- MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 4 ++-- MdeModu

[edk2] [PATCH v3 2/6] CryptoPkg: Refine type cast for pointer subtraction

2017-02-24 Thread Hao Wu
d then perform the subtraction: PtrDiff = (UINTN) Ptr1 - (UINTN) Ptr2; Cc: Qin Long Cc: Ting Ye Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Acked-by: Laszlo Ersek --- CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c | 6 +++--- 1 file changed, 3 inser

[edk2] [PATCH v3 01/12] MdePkg: Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
;UINTN' type cast like: if (a + b > c) {...} The VS compiler will complain with warning C4018 (signed/unsigned mismatch, level 3 warning) due to promoting 'a + b' to type 'int'. Cc: Michael Kinney Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Sign

[edk2] [PATCH v3 00/12] Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
) or (UINT64) (a + b) -> (UINT64)(UINT32) (a + b) 2). Otherwise (UINT64) (a + b) -> (UINT64)(UINTN) (a + b) Hao Wu (12): MdePkg: Refine casting expression result to bigger size MdeModulePkg: Refine casting expression result to bigger size FatPkg: Refine casting expression result

[edk2] [PATCH v3 04/12] IntelFrameworkModulePkg: Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
;UINTN' type cast like: if (a + b > c) {...} The VS compiler will complain with warning C4018 (signed/unsigned mismatch, level 3 warning) due to promoting 'a + b' to type 'int'. Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu ---

[edk2] [PATCH v3 02/12] MdeModulePkg: Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
;UINTN' type cast like: if (a + b > c) {...} The VS compiler will complain with warning C4018 (signed/unsigned mismatch, level 3 warning) due to promoting 'a + b' to type 'int'. Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signe

[edk2] [PATCH v3 10/12] ShellPkg: Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
;UINTN' type cast like: if (a + b > c) {...} The VS compiler will complain with warning C4018 (signed/unsigned mismatch, level 3 warning) due to promoting 'a + b' to type 'int'. Cc: Jaben Carsey Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed

<    1   2   3   4   5   6   7   8   9   >