[edk2] [Patch 1/4] SecurityPkg SecureBootConfigDxe: Add check for the external PE/COFF image.

2016-07-12 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- SecurityPkg/SecurityPkg.dsc| 2 ++ .../SecureBootConfigDxe

[edk2] [Patch 4/4] SecurityPkg DxeImageVerificationLib: Add comments in HashPeImage()

2016-07-12 Thread Liming Gao
The input PeImage in HashPeImage() has been checked. Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/DxeImageVerificationLib/DxeImageVerificationLib.c| 5 - 1 file changed, 4 insertions(+), 1 deletion

[edk2] [Patch 2/4] SecurityPkg TrEEDxe: Add check for the PE/COFF image.

2016-07-12 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- SecurityPkg/Tcg/TrEEDxe/MeasureBootPeCoff.c | 22 +- SecurityPkg/Tcg/TrEEDxe

[edk2] [Patch 1/2] UefiCpuPkg CpuIo2Dxe: Update INF to refer to NASM source file

2016-07-10 Thread Liming Gao
Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf b/UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf index

[edk2] [Patch 0/2] UefiCpuPkg Update INF to refer to NASM source file

2016-07-10 Thread Liming Gao
NASM is used as the default assembly source file. Liming Gao (2): UefiCpuPkg CpuIo2Dxe: Update INF to refer to NASM source file UefiCpuPkg CpuMpPei: Update INF to refer to NASM source file UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf | 12 +--- UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 10

[edk2] [Patch 2/2] UefiCpuPkg CpuMpPei: Update INF to refer to NASM source file

2016-07-10 Thread Liming Gao
Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.inf b/UefiCpuPkg/CpuMpPei/CpuMpPei.inf index 445caf9

[edk2] [Patch] UefiCpuPkg SecCore: Update SecCore inf to refer to nasmb source

2016-07-10 Thread Liming Gao
Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- UefiCpuPkg/SecCore/SecCore.inf | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UefiCpuPkg/SecCore/SecCore.inf b/UefiCpuPkg/SecCore/SecCore.inf index bf08a4c..4e598cb

[edk2] [Patch 4/5] IntelFsp2Pkg BaseFspSwitchStackLib: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao Cc: Giri Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../BaseFspSwitchStackLib.inf | 2 - .../Library/BaseFspSwitchStackLib/Ia32/Stack.asm | 77

[edk2] [Patch 5/5] IntelFsp2Pkg SecFspSecPlatformLibNull: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao Cc: Giri Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../SecFspSecPlatformLibNull/Ia32/Flat32.asm | 131 - .../Library/SecFspSecPlatformLibNull/Ia32/Flat32.s

[edk2] [Patch 3/5] IntelFsp2Pkg BaseFspDebugLibSerialPort: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao Cc: Giri Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../BaseFspDebugLibSerialPort.inf | 2 -- .../BaseFspDebugLibSerialPort/Ia32/FspDebug.asm| 34

[edk2] [Patch 2/5] IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao Cc: Giri Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Ia32/PeiCoreEntry.S| 130 .../Ia32/PeiCoreEntry.asm | 140

[edk2] [Patch 0/5] Remove MASM/GAS from new IntelFsp2Pkg/IntelFps2WrapperPkg

2016-07-08 Thread Liming Gao
. Here, I would like to propose to add NASM only for IA32 and X64 assembly files in new modules and packages. If there is the real request for MASM or GAS, we can consider to add them later. Liming Gao (5): IntelFsp2WrapperPkg BaseFspWrapperApiLib: Remove MASM/GAS files IntelFsp2WrapperPkg

[edk2] [Patch 1/5] IntelFsp2WrapperPkg BaseFspWrapperApiLib: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao Cc: Giri Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf | 2 - .../Library/BaseFspWrapperApiLib/X64/Thunk64To32.S | 230

[edk2] [Patch] IntelFrameworkModulePkg StatusCode RuntimeDxe: Remove duplicated structure.

2016-06-29 Thread Liming Gao
RUNTIME_MEMORY_STATUSCODE_HEADER has been moved into MdeModulePkg public header file Include/Guid/MemoryStatusCodeRecord.h. It should be removed from the driver. Cc: Cinnamon Shia Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Universal/StatusCode

[edk2] [Patch 0/2] PcAtChipsetPkg: Update ResetSystemLib with PCDs for Reset Control Register and Value

2016-06-23 Thread Liming Gao
Liming Gao (2): PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value PcAtChipsetPkg: Update ResetSystemLib with PCDs PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.c | 6 +++--- PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.inf | 6 +- PcAtChipsetPkg

[edk2] [Patch 1/2] PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value

2016-06-23 Thread Liming Gao
PcdResetControlRegister for Reset Control Register address. PcdResetControlValueColdReset for Reset Control Register code reset value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- PcAtChipsetPkg/PcAtChipsetPkg.dec | 8 PcAtChipsetPkg

[edk2] [Patch 2/2] PcAtChipsetPkg: Update ResetSystemLib with PCDs

2016-06-23 Thread Liming Gao
Update ResetSystemLib with PCDs for Reset Control Register and Value instead of hard code 0x64 and 0xFE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.c | 6 +++--- PcAtChipsetPkg/Library

[edk2] [Patch 2/2] SecurityPkg: Update PlatformSecureLibNull with PCD to get physical presence.

2016-06-23 Thread Liming Gao
ser wants this behavior, he can still configure PcdUserPhysicalPresence value to TRUE in the platform DSC file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../PlatformSecureLibNull/PlatformSecureLibNull.c |

[edk2] [Patch 1/2] SecurityPkg: Add PcdUserPhysicalPresence to indicate use physical presence.

2016-06-23 Thread Liming Gao
This PCD supports all configuration type. Its default value is FALSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- SecurityPkg/SecurityPkg.dec | 6 ++ SecurityPkg/SecurityPkg.uni | 9 + 2 files changed, 15 insertions(+) diff --git a

[edk2] [Patch 0/2] Update PlatformSecureLibNull with PCD to get user physical presence

2016-06-23 Thread Liming Gao
Liming Gao (2): SecurityPkg: Add PcdUserPhysicalPresence to indicate use physical presence. SecurityPkg: Update PlatformSecureLibNull with PCD to get physical presence. .../PlatformSecureLibNull/PlatformSecureLibNull.c | 29 -- .../PlatformSecureLibNull.inf

[edk2] [Patch] MdeModulePkg: Remove NORETURN for PeiCore() and DxeMain() function

2016-06-22 Thread Liming Gao
-off-by: Liming Gao Cc: Marvin Haeuser --- MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 1 - MdeModulePkg/Core/Pei/PeiMain.h | 1 - MdeModulePkg/Core/Pei/PeiMain/PeiMain.c | 1 - 3 files changed, 3 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe

[edk2] [Patch 000/351] Convert EDK II core packages to NASM for IA32/X64

2016-06-15 Thread Liming Gao
These patches are available in https://github.com/lgao4/edk2.git nasm-v1. The nasm-v1 branch sha1 is 42bec457c575b6cb7c9fc1730cbea263ffce7b1c Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Signed-off-by: Jordan Justen These patches base on previous patches

[edk2] [Patch] BaseTools: Fix GenFds issue to wrongly get file without postfix.

2016-05-20 Thread Liming Gao
GenFds GenSection will search the output file based on the file extension. If the output file has no extension, it should be skip. Cc: Andrew Fish Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Source/Python/GenFds/Section.py | 2 +- 1 file

[edk2] [PATCH v2] BaseTools: Add error condition for the path in PACKAGES_PATH env

2016-05-20 Thread Liming Gao
ned-off-by: Yonghong Zhu Reviewed-by: Liming Gao Reviewed by: Andrew Fish --- BaseTools/Source/Python/build/build.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 07891da..4f859bf 100644 --- a/Bas

[edk2] [Patch] MdePkg: Update StatusCode Runtime Protocol comments to follow PI spec.

2016-05-17 Thread Liming Gao
Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdePkg/Include/Protocol/StatusCode.h | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/MdePkg/Include/Protocol/StatusCode.h b/MdePkg/Include/Protocol

[edk2] [Patch] SecurityPkg: Use PcdGet32() to access PcdPeiCoreMaxFvSupported

2016-05-16 Thread Liming Gao
FixedPcdGet32() limits PcdPeiCoreMaxFvSupported type as FixedAtBuild. PcdGet32() allows PCD be configured as FixedAtBuild or PatchableInModule. Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 10

[edk2] [Patch] MdeModulePkg: DxeCore MemoryPool Algorithm Update

2016-04-26 Thread Liming Gao
ected in our X64 platform with DEBUG enable. 64 byte: 22 seconds in BDS phase 128 byte: 19.6 seconds in BDS phase Cc: Michael Kinney Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Core/Dxe/Mem/Pool.c | 2 +- 1 file chang

[edk2] [Patch] MdeModulePkg: Add description to MdeModulePkg AcpiTable driver.

2016-04-24 Thread Liming Gao
Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf | 3 +++ MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.uni | 8 +++- 2 files changed, 6 insertions(+), 5 deletions(-) diff

[edk2] [Patch] MdeModulePkg: Correct PlatformHookLibSerialPortPpi module type.

2016-04-14 Thread Liming Gao
This library instance is PEIM type, not BASE type. It has the PPI dependency for PEIM. Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../PlatformHookLibSerialPortPpi/PlatformHookLibSerialPortPpi.inf | 4 ++-- 1 file changed, 2

[edk2] [PATCH v2 3/3] MdeModulePkg: Update Guid/Protocol usages in INF files.

2016-04-12 Thread Liming Gao
V2: Update VariableSmm inf to align the change in VariableRuntimeDxe.inf. Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/VarCheckUefiLib/VarCheckUefiLib.inf| 78 +++--- .../Variable/RuntimeDxe

[edk2] [Patch] QuarkSocPkg: Add /Oi option to let MemoryInit pass build.

2016-04-11 Thread Liming Gao
MemoryInit uses the intrinsic memset function. To keep it pass build in VS tool chain without source code change, /Oi option will be added. Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei

[edk2] [Patch] QuarkSocPkg: Remove intrinsic memset function usages in MemoryInit

2016-04-10 Thread Liming Gao
Use BaseMemoryLib ZeroMem replace memset function. Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a

[edk2] [PATCH v2 2/2] MdeModulePkg: Update PerformanceLib instances not to check Identifier.

2016-04-08 Thread Liming Gao
In PerformanceLib, Identifier is for single PERF, not the pair of PERF. When find the matched START and END pair, the identifier will not be checked. Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/DxeCorePerformanceLib

[edk2] [PATCH v2 0/2] Update PerformanceLib not to check Identifier.

2016-04-08 Thread Liming Gao
In V2, update function header comments not to check Identifier. In V1, update PerformanceLib instance not to check Identifier. Liming Gao (2): MdePkg: Update PerformanceLib comments not to check Identifier. MdeModulePkg: Update PerformanceLib instances not to check Identifier. .../Library

[edk2] [PATCH v2 1/2] MdePkg: Update PerformanceLib comments not to check Identifier.

2016-04-08 Thread Liming Gao
In PerformanceLib, Identifier is for single PERF, not the pair of PERF. When find the matched START and END pair, the identifier will not be checked. Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdePkg/Include/Library/PerformanceLib.h | 4

[edk2] [Patch] MdeModulePkg: Update PerformanceLib instances not to check Identifier.

2016-04-08 Thread Liming Gao
Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 5 ++--- MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c | 5 ++--- MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c | 5 ++--- 3 files changed, 6

[edk2] [Patch] Update edksetup.bat to check EDK_TOOLS_PATH before set it.

2016-04-08 Thread Liming Gao
If EDK_TOOLS_PATH is set, then not set it again. If EDK_TOOLS_PATH is not set, then set it. Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- edksetup.bat | 30 -- 1 file changed, 16 insertions(+), 14 deletions

[edk2] [Patch 3/3] MdeModulePkg: Update Guid/Protocol usages in INF files.

2016-04-06 Thread Liming Gao
Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/VarCheckUefiLib/VarCheckUefiLib.inf| 78 +++--- .../Variable/RuntimeDxe/VariableRuntimeDxe.inf | 10 +-- 2 files changed, 44 insertions(+), 44 deletions

[edk2] [Patch 1/3] SecurityPkg: Update protocol usage in module INF files.

2016-04-06 Thread Liming Gao
Update TCG and Library module uses gEdkiiVariableLockProtocolGuid as SOMETIMES_CONSUMES instead of CONSUMES to follow the code logic. Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../DxeTcg2PhysicalPresenceLib

[edk2] [Patch 2/3] ShellPkg: Update Guid/Protocol usages in INF files.

2016-04-06 Thread Liming Gao
Cc: Jaben Carsey Cc: Shumin Qiu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- ShellPkg/Application/Shell/Shell.inf | 10 - .../UefiHandleParsingLib/UefiHandleParsingLib.inf | 24 +++--- .../UefiShellCommandLib

[edk2] [Patch 0/3] Update Guid/Protocol usages to match code logic.

2016-04-06 Thread Liming Gao
Liming Gao (3): SecurityPkg: Update protocol usage in module INF files. ShellPkg: Update Guid/Protocol usages in INF files. MdeModulePkg: Update Guid/Protocol usages in INF files. .../Library/VarCheckUefiLib/VarCheckUefiLib.inf| 78 +++--- .../Variable/RuntimeDxe

[edk2] [Patch] MdeModulePkg: Update PeiCore dispatcher to handle PEIM and PEI_CORE only

2016-02-05 Thread Liming Gao
When PcdShadowPeimOnBoot is FALSE, they are not copied to memory and execute from their original locations. Here, this policy should only apply for PEIM and PEI_CORE, not for other file type, such as DXE_CORE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] MdeModulePkg: Update DxeCore dispatcher to ignore PEI and SMM depex for FV.

2016-02-03 Thread Liming Gao
If FV image without DXE depex, it will be dispatched by DxeCore. If FV image with SMM depex, it is the invalid image. ASSERT will be trig. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 31

[edk2] [Patch 3/3] BaseTools/GenFw: Correct datatypes in diagnostic messages and check for string termination

2016-01-31 Thread Liming Gao
From: Michael LeMay This patch revises multiple diagnostic messages to use correct datatypes. It also checks that a symbol name that is about to be used in a diagnostic message is terminated by a null character within the contents of the string table section so that the print routine does not re

[edk2] [Patch 5/8] MdeModulePkg: Update SerialDxe inf to include the module uni

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Universal/SerialDxe/SerialDxe.inf | 4 1 file changed, 4 insertions(+) diff --git a/MdeModulePkg/Universal/SerialDxe/SerialDxe.inf b/MdeModulePkg/Universal/SerialDxe/SerialDxe.inf index

[edk2] [Patch 7/8] NetworkPkg: Update module inf to include the missing uni file

2015-12-23 Thread Liming Gao
Update DnsDxe and HttpUtilitiesDxe inf files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- NetworkPkg/DnsDxe/DnsDxe.inf | 5 +++-- NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf | 5 +++-- 2 files changed, 6 insertions(+), 4

[edk2] [Patch 2/8] MdeModulePkg: Add the missing Library uni files of ImageDecode instances

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../BmpImageDecoderLib/BmpImageDecoderLib.inf | 1 + .../BmpImageDecoderLib/BmpImageDecoderLib.uni | 26 ++ MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf | 1 + MdeModulePkg

[edk2] [Patch 3/8] MdeModulePkg: Add the missing library uni files of UI instances

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../BootMaintenanceManagerLib.inf | 1 + .../BootMaintenanceManagerLib.uni | 26 ++ .../Library/BootManagerLib/BootManagerLib.inf | 1 + .../Library

[edk2] [Patch 8/8] IntelFrameworkModulePkg: Remove the undefined PCD help and prompt strings

2015-12-23 Thread Liming Gao
IntelFrameworkModulePkg.uni includes some undefined PCD help and prompt strings, which will be removed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../IntelFrameworkModulePkg.uni| 26 +- 1 file changed, 1

[edk2] [Patch 4/8] MdeModulePkg: Add the missing module uni in RegularExpressionDxe

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../RegularExpressionDxe/RegularExpressionDxe.inf | 3 +++ .../RegularExpressionDxe/RegularExpressionDxe.uni | 26 ++ .../RegularExpressionDxeExtra.uni | 18

[edk2] [Patch 0/8] Add the missing module uni and extra uni files

2015-12-23 Thread Liming Gao
Liming Gao (8): MdeModulePkg: Add the missing Library uni files of Ipmi instances MdeModulePkg: Add the missing Library uni files of ImageDecode instances MdeModulePkg: Add the missing library uni files of UI instances MdeModulePkg: Add the missing module uni in RegularExpressionDxe

[edk2] [Patch 6/8] UefiCpuPkg: Add the missing module uni for CpuS3DataDxe

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf | 4 +++ UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.uni | 40 +++ UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxeExtra.uni | 20 ++ 3 files

[edk2] [Patch 1/8] MdeModulePkg: Add the missing Library uni files of Ipmi instances

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/BaseIpmiLibNull/BaseIpmiLibNull.inf| 1 + .../Library/BaseIpmiLibNull/BaseIpmiLibNull.uni| 25 ++ .../DxeIpmiLibIpmiProtocol.inf | 1

[edk2] [Patch] BaseTools: Update Scripts to support VS2015 env

2015-12-21 Thread Liming Gao
edk2 Edk2Setup.bat depends on those scripts to configure VS env. Update them to support VS2015. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Scripts/SetVisualStudio.bat | 5 + BaseTools/Scripts/ShowEnvironment.bat | 19

[edk2] [PATCH v2] Nt32Pkg: Fix VS2015 Build Failure

2015-12-21 Thread Liming Gao
need to link vcruntime.lib and ucrt.lib. More detail is in http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- Nt32Pkg/Sec/SecMain.inf | 6 +- 1 file changed, 5 insertions

[edk2] [Patch] Nt32Pkg: Fix VS2015 Build Failure

2015-12-18 Thread Liming Gao
need to link vcruntime.lib and ucrt.lib. More detail is in http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- Nt32Pkg/Sec/SecMain.inf | 6 +- 1 file changed, 5 insertions

[edk2] [Patch] MdePkg: Convert IoLibEbc.c source file to DOS format

2015-12-16 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdePkg/Library/BaseIoLibIntrinsic/IoLibEbc.c | 342 +-- 1 file changed, 171 insertions(+), 171 deletions(-) diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibEbc.c b/MdePkg/Library

[edk2] [PATCH v2 3/3] EdkCompatibilityPkg: Fix GCC error to avoid the duplicated global variables

2015-12-16 Thread Liming Gao
SmmBaseHelper uses the same name global variables to the one in SmmMemoryAllocateLib. Update SmmBaseHelper to use SmmMemLib SmmIsBufferOutsideSmmValid(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Compatibility/SmmBaseHelper/SmmBaseHelper.c| 84

[edk2] [Patch 1/3] DuetPkg: Fix GCC error to avoid the duplicated global variables in EfiLdr

2015-12-16 Thread Liming Gao
Move the global variable definitions into source code instead of head filer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- DuetPkg/EfiLdr/EfiLdr.h| 3 --- DuetPkg/EfiLdr/EfiLoader.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[edk2] [Patch 2/3] DuetPkg: Fix GCC error to avoid the duplicated global variable in SmbiosGenDxe

2015-12-16 Thread Liming Gao
Update SmbiosGenDxe to use UefiHiiServicesLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- DuetPkg/SmbiosGenDxe/SmbiosGen.c | 11 --- DuetPkg/SmbiosGenDxe/SmbiosGen.h | 1 + DuetPkg/SmbiosGenDxe/SmbiosGen.inf | 1 + 3 files changed, 2

[edk2] [Patch 3/3] EdkCompatibilityPkg: Fix GCC error to avoid the duplicated global variables

2015-12-16 Thread Liming Gao
SmmBaseHelper uses the same name global variables to the one in SmmMemoryAllocateLib. Update SmmBaseHelper to use the specific one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Compatibility/SmmBaseHelper/SmmBaseHelper.c | 16

[edk2] [Patch 0/3] Fix GCC error to avoid the duplicated global variables

2015-12-16 Thread Liming Gao
GCC adds the compiler options to detect the duplicated global variables. Update the below modules to avoid it and pass GCC build. Liming Gao (3): DuetPkg: Fix GCC error to avoid the duplicated global variables in EfiLdr DuetPkg: Fix GCC error to avoid the duplicated global variable in

[edk2] [Patch] EdkCompatibilityPkg: Fix wrong guid value of gEfiManagedNetworkProtocolGuid

2015-12-16 Thread Liming Gao
UEFI2.1B corrects the guid value of gEfiManagedNetworkProtocolGuid. ECP package updates its value in ManagedNetwork.h, but miss the one in EdkIIGlueLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/EdkIIGlueLib/EntryPoints

[edk2] [Patch] NetworkPkg: Correct gEfiUdp4ProtocolGuid usage in DnsDxe

2015-12-16 Thread Liming Gao
DnsDxe driver locates gEfiUdp4ProtocolGuid. Its usage should be TO_START. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- NetworkPkg/DnsDxe/DnsDxe.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPkg/DnsDxe/DnsDxe.inf b

[edk2] [Patch] MdeModulePkg: Update print error level for RuntimeDriver alignment check

2015-12-15 Thread Liming Gao
1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c b/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c index 3486737..adfc91c 100644 --- a/MdeModulePkg/Cor

[edk2] [Patch 4/4] SourceLevelDebugPkg: Correct gEfiDebugAgentGuid usage in DxeDebugAgentLib

2015-12-14 Thread Liming Gao
DxeDebugAgentLib instance produces gEfiDebugAgentGuid system table. Its usage should be PRODUCES instead of SOMETIMES_PRODUCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf | 2 +- 1 file

[edk2] [Patch 1/4] SecurityPkg: Correct Pcd Usage PcdTcg2HashAlgorithmBitmap

2015-12-14 Thread Liming Gao
HashLibBaseCryptoRouter sets PcdTcg2HashAlgorithmBitmap. Its usage should be both SOMETIMES_CONSUMES and SOMETIMES_PRODUCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf| 4

[edk2] [Patch 3/4] MdeModulePkg: Correct usage gEfiIp4Config2ProtocolGuid in Ip4Dxe

2015-12-14 Thread Liming Gao
Ip4Dxe driver installs gEfiIp4Config2ProtocolGuid. Its usage should be BY_START. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[edk2] [Patch 0/4] Correct Pcd/Guid/Protocol Usage in module INF

2015-12-14 Thread Liming Gao
Liming Gao (4): SecurityPkg: Correct Pcd Usage PcdTcg2HashAlgorithmBitmap SecurityPkg: Correct Pcd Usage PcdTpm2HashMask in Tcg2Pei MdeModulePkg: Correct usage gEfiIp4Config2ProtocolGuid in Ip4Dxe SourceLevelDebugPkg: Correct gEfiDebugAgentGuid usage in DxeDebugAgentLib MdeModulePkg

[edk2] [Patch 2/4] SecurityPkg: Correct Pcd Usage PcdTpm2HashMask in Tcg2Pei

2015-12-14 Thread Liming Gao
Tcg2Pei sets PcdTpm2HashMask. Its usage should be both SOMETIMES_CONSUMES and SOMETIMES_PRODUCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

[edk2] [PATCH v2] MdePkg: Add Ipmi2.0 definitions head file.

2015-12-03 Thread Liming Gao
From: Daocheng Bu Add Ipmi2.0 definitions head file based on Ipmi category: App, Storage and etc. In V2, correct #include IndustryStandard/IpmiNetFnSensorEventDefinitions.h, and remove trailing space. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daocheng Bu Reviewed-b

[edk2] [Patch 6/6] OvmfPkg: Fix VS2015 warning C4459 in XenBusDxe

2015-12-02 Thread Liming Gao
warning C4459: declaration of 'xs' hides global declaration. Update code to rename local variable xs to xsp to be different. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Cc: Justen Jordan --- OvmfPkg/XenBusDxe/XenStore.c | 14 +++--- 1 fi

[edk2] [Patch 4/6] MdeModulePkg: Fix VS2015 warning C4311 & C4312 in RegularExpressionDxe

2015-12-02 Thread Liming Gao
warning C4311: pointer truncation from 'void *' to 'unsigned long' warning C4312: conversion from 'unsigned long' to 'void *' of greater size Update code to convert type to UINTN first, then convert it to other type. Contributed-under: TianoCore Contribu

[edk2] [Patch 5/6] CryptoPkg: Disable VS2015 warning C4311 in OpensslLib

2015-12-02 Thread Liming Gao
Warning C4311: pointer truncation from 'type' to 'type'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Cc: Long Qin --- CryptoPkg/Library/OpensslLib/OpensslLib.inf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[edk2] [Patch 3/6] MdeModulePkg: Fix VS2015 warning C4456 in RegularExpressionDxe

2015-12-02 Thread Liming Gao
warning C4456: declaration of 'q' hides previous local declaration. Update code to use the different local variable name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Cc: El-Haj-Mahmoud Samer --- .../Universal/RegularExpressionDxe/Oniguruma/regexe

[edk2] [Patch 2/6] MdeModulePkg: Fix VS2015 warning C4459 in DriverSampleDxe

2015-12-02 Thread Liming Gao
warning C4459: declaration of 'PrivateData' hides global declaration. Update DriverSampleDxe to rename global variable name to be different. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../Universal/DriverSampleDxe/DriverSample.c

[edk2] [Patch 0/6] Fix VS2015 warnings in EDKII packages.

2015-12-02 Thread Liming Gao
, NetworkPkg, SecurityPkg, ShellPkg, SourceLevelDebugPkg, PcAtChipsetPkg, PerformancePkg, IntelFrameworkModulePkg, IntelFrameworkPkg, CryptoPkg, IntelFspPkg, IntelFspWrapperPkg and FatPkg can pass VS2015. Ovmf can pass VS2015. Nt32 is failure in VS2015, still under investigation. Other package owners can choose

[edk2] [Patch 1/6] MdePkg: Disable VS2015 warning C4701 & C4703

2015-12-02 Thread Liming Gao
C4701 & C4703 may cause false positive issues. They have been disabled in VS2013. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdePkg/Include/Ia32/ProcessorBind.h | 6 +++--- MdePkg/Include/X64/ProcessorBind.h | 6 +++--- 2 files changed, 6 insert

[edk2] [Patch] BaseTools: Add VS2015 tool chain in tools_def.template

2015-11-30 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang Yu Reviewed-by: Liming Gao --- BaseTools/Conf/tools_def.template | 519 +- edksetup.bat | 38 +-- 2 files changed, 536 insertions(+), 21 deletions(-) diff --git

[edk2] [PATCH v2] MdePkg: Add more DataBits support to Port80 output

2015-11-09 Thread Liming Gao
The BasePostCodeLibPort80 instance just prints UINT8 to IoPort 80. Some boards may support 16bit or 32bit. To support them, new PCD PcdPort80DataWidth is introduced to specify the width of data bits to Port80. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] BaseTools: Print PACKAGES_PATH build environment if it is set.

2015-11-03 Thread Liming Gao
Print the optional build environment PACKAGES_PATH and EDK_TOOLS_BIN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 4 1 file changed, 4 insertions(+) diff --git a/BaseTools/Source/Python/build/build.py b

[edk2] [Patch] BaseTools: Don't require ECP pkg in WORKSPACE when PACKAGES_PATH is set

2015-11-03 Thread Liming Gao
When PACKAGES_PATH is set, ECP pkg may be in another directory, not exist in WORKSPACE. So, keep this check in single WORKSPACE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 22 -- 1 file

[edk2] [Patch] MdePkg: Add more DataBits support to Port80 output

2015-11-02 Thread Liming Gao
The BasePostCodeLibPort80 instance just prints UINT8 to IoPort 80. Some boards may support 16bit or 32bit. To support them, new PCD PcdPort80DataWidth is introduced to specify the width of data bits to Port80. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] BaseTools: Add MultipleWorkspace.py in the common dependency.

2015-10-14 Thread Liming Gao
Add new added MultipleWorkspace.py in the common dependency to freeze python tools for Windows. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Source/Python/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/Python

[edk2] [Patch] BaseTools: Fix the issue to support windows root directory

2015-10-14 Thread Liming Gao
Use os.path.relpath to get the relative directory instead of directly trim it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Source/Python/Common/MultipleWorkspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools

[edk2] [Patch] edk2: Change BaseTools owner in Maintainers.txt

2015-09-11 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- Maintainers.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Maintainers.txt b/Maintainers.txt index 1a07314..acb717e 100644 --- a/Maintainers.txt +++ b/Maintainers.txt @@ -68,7 +68,8

[edk2] [Patch 0/6] Add multiple workspaces feature

2015-09-10 Thread Liming Gao
CE and PACKAGES_PATH. This feature still supports current working models. If you have the different tree layout, you can configure PACKAGES_PATH to enable this feature. Liming Gao (6): BaseTools: Update Build tool to support multiple workspaces BaseTools: Update UPT tool to support multiple wo

[edk2] [Patch 3/6] BaseTools: Update ECC tool to support multiple workspaces

2015-09-10 Thread Liming Gao
Update ECC to refer MultipleWorkspace class to convert the file path from WORKSPACE and PACKAGES_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Li YangX Reviewed-by: Liming Gao --- BaseTools/Source/Python/Ecc/Check.py | 13 + BaseTools/Source

[edk2] [Patch 5/6] BaseTools: Update Edk2Setup.bat to support multiple workspaces

2015-09-10 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Wu Hao A --- BaseTools/Scripts/SetVisualStudio.bat | 2 +- BaseTools/Scripts/ShowEnvironment.bat | 2 ++ Edk2Setup.bat | 64 +-- 3 files

[edk2] [Patch 1/6] BaseTools: Update Build tool to support multiple workspaces

2015-09-10 Thread Liming Gao
2 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Li YangX Reviewed-by: Liming Gao --- BaseTools/Source/Python/AutoGen/AutoGen.py | 16 +-- BaseTools/Source/Python/AutoGen/GenMake.py | 4 +- BaseTools/Source/Python/Common/EdkIIWorkspace.py | 3 +- Bas

[edk2] [Patch 6/6] BaseTools: Update edksetup.sh to support multiple workspaces

2015-09-10 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Wu Hao A --- BaseTools/BuildEnv | 66 -- edksetup.sh| 19 +--- 2 files changed, 65 insertions(+), 20 deletions(-) diff --git a

[edk2] [Patch 2/6] BaseTools: Update UPT tool to support multiple workspaces

2015-09-10 Thread Liming Gao
Update UPT to refer MultipleWorkspace class to convert the file path from WORKSPACE and PACKAGES_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hesheng Chen Reviewed-by: Liming Gao --- .../Python/UPT/Core/DistributionPackageClass.py| 26

[edk2] [Patch 4/6] BaseTools: Update edksetup.bat to support multiple workspaces

2015-09-10 Thread Liming Gao
Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Wu Hao A --- BaseTools/toolsetup.bat | 150 +++- edksetup.bat| 30 -- 2 files changed, 122 insertions(+), 58 deletions(-) diff --git a/BaseTools/toolsetup.bat b/BaseTools

[edk2] [Patch] CryptoPkg: Fix one wrong parameter for weak key checking

2015-09-02 Thread Liming Gao
Fix one wrong offset which is passed into DES weak key checking in TdesInit(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long CC: Jiaxin Wu --- CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

[edk2] [PATCH v2] MdeModulePkg: Fix the issue in DxeCore CoreInitializeMemoryServices()

2015-09-01 Thread Liming Gao
sure the free memory range not include the memory allocation hob. CC: Benjamin Herrenschmidt Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 47 - 1 file changed, 46 insertions(+), 1

[edk2] [Patch 0/3] Add the missing module UNI files

2015-08-27 Thread Liming Gao
Liming Gao (3): MdePkg: Add the missing module UNI files MdeModulePkg: Add the missing module UNI files. IntelFrameworkModulePkg: Ad the missing module UNI files. .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf| 1 + .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.uni

[edk2] [Patch 3/3] IntelFrameworkModulePkg: Ad the missing module UNI files.

2015-08-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf| 1 + .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.uni| Bin 0 -> 1800 bytes .../LegacyBootManagerLib/LegacyBootManagerLib.inf|

[edk2] [Patch 2/3] MdeModulePkg: Add the missing module UNI files.

2015-08-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdeModulePkg/Application/UiApp/UiApp.inf | 6 +- MdeModulePkg/Application/UiApp/UiApp.uni | Bin 0 -> 1616 bytes MdeModulePkg/Application/UiApp/UiAppExtra.uni | Bin 0 -> 1296

[edk2] [Patch 1/3] MdePkg: Add the missing module UNI files

2015-08-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf | 1 + MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.uni | Bin 0 -> 1942 bytes 2 files changed, 1 insertion(+) create mode 100644 MdePkg/Libr

[edk2] [Patch] MdeModulePkg: Fix the issue in DxeCore CoreInitializeMemoryServices()

2015-08-24 Thread Liming Gao
CoreInitializeMemoryServices() will essentially pickup a piece of memory out of *any* memory descriptor HOB completely ignoring the memory allocation HOBs. This change considers memory allocation hobs in this API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

<    1   2   3   4   5   6   >