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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
: Hao Wu
---
.../Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf | 5 +-
.../BaseMemoryLibMmx/Ia32/IsZeroBuffer.nasm| 55 ++
.../Library/BaseMemoryLibMmx/IsZeroBufferWrapper.c | 54 +
MdePkg/Library/BaseMemoryLibMmx/MemLibInternals.h | 19
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
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
.
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
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
;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 +++
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
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
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
: 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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
.
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
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
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
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
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
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
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/
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
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
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(+)
+ 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
+ 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
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
) (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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
', 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
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
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
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
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
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
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
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
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
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:
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
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
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
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
;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
) 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
;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
---
;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
;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
201 - 300 of 888 matches
Mail list logo