Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and NULL detection

2018-01-31 Thread Wang, Jian J
Ok. Thanks for the comments. Regards, Jian > -Original Message- > From: Ni, Ruiyu > Sent: Thursday, February 01, 2018 1:54 PM > To: Wang, Jian J ; edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Dong, Eric ; > Zeng, Star > Subject: Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict b

Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and NULL detection

2018-01-31 Thread Ni, Ruiyu
On 2/1/2018 1:33 PM, Ni, Ruiyu wrote: On 2/1/2018 9:17 AM, Wang, Jian J wrote: You're right. Using a mask or separating the API into two (SetMemoryAttributes/ClearMemoryAttributes) is much better and can avoid many potential issues. Regards, Jian For now the patch is good enough to leave NU

Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and heap guard

2018-01-31 Thread Ni, Ruiyu
On 1/29/2018 8:09 PM, Jian J Wang wrote: Considering following scenario (both NX memory protection and heap guard are enabled): 1. Allocate 3 pages. The attributes of adjacent memory pages will be |NOT-PRESENT| present | present | present |NOT-PRESENT| 2. Free the middle p

Re: [edk2] [PATCH] MdeModulePkg/Core: fix guard page missing issue

2018-01-31 Thread Ni, Ruiyu
On 1/29/2018 12:52 PM, Jian J Wang wrote: This issue is a regression one caused by a patch at 425d25699be83c35e12df8470b827d7fbcef3bce That fix didn't take the 0 page to free into account, which still needs to call UnsetGuardPage() even no memory needs to free. The fix is just moving the

Re: [edk2] [PATCH 2/6] MdeModulePkg/ConSplitter: ReadKeyStrokeEx always return key state

2018-01-31 Thread Zeng, Star
Hi Ruiyu, One comment: ConSplitterTextInPrivateReadKeyStroke() needs filter out partial key from ConSplitterTextInExDequeueKey(). With the comment above handled, Reviewed-by: Star Zeng to this patch series. Thanks, Star -Original Message- From: Ni, Ruiyu Sent: Monday, January 22, 20

Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and NULL detection

2018-01-31 Thread Ni, Ruiyu
On 2/1/2018 9:17 AM, Wang, Jian J wrote: You're right. Using a mask or separating the API into two (SetMemoryAttributes/ClearMemoryAttributes) is much better and can avoid many potential issues. Regards, Jian For now the patch is good enough to leave NULL pointer detection feature enabled.

Re: [edk2] [PATCH] UefiCpuPkg: Enhance CPU feature dependency check

2018-01-31 Thread Ni, Ruiyu
On 1/31/2018 5:44 PM, Laszlo Ersek wrote: On 01/31/18 08:00, Song, BinX wrote: Current CPU feature dependency check will hang on when meet below or similar case: if (IsCpuFeatureSupported (CPU_FEATURE_AESNI)) { Status = RegisterCpuFeature ( "AESNI", AesniGetConfigD

Re: [edk2] [RFC] MdeModulePkg/PciHostBridgeDxe: Add support for address translation

2018-01-31 Thread Ni, Ruiyu
On 1/29/2018 4:50 PM, Guo Heyi wrote: Sorry for the late; I caught cold and didn't work for several days last week :( Please see my comments below: On Mon, Jan 22, 2018 at 11:36:14AM +0800, Ni, Ruiyu wrote: On 1/18/2018 9:26 AM, Guo Heyi wrote: On Wed, Jan 17, 2018 at 02:08:06PM +, Ard Bi

[edk2] Need help about a Hii tutorial.

2018-01-31 Thread krishnaLee
Hi, I am learning Hii and I know few about Hii,luckly,I found a good tutorial here: https://firmware.intel.com/sites/default/files/Lab_Material_FW.zip source_code locate in:Lab_Material_FW.zip\FW\LabSampleCode\MyWizardDriver https://firmware.intel.com/sites/default/files/Presentations161017.zip Hii

Re: [edk2] [Patch 1/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Zeng, Star
Mike, Depend on whether the allocated buffer will be returned to caller or not, and whether the implementation is matched with the function comments. Some cases seem ok. 1. There are paired interfaces, for example AddUnicodeString and FreeUnicodeStringTable, etc. 2. There are clear comments, and

Re: [edk2] [PATCH] UefiCpuPkg: Enhance CPU feature dependency check

2018-01-31 Thread Song, BinX
Hi Laszlo, Thanks for your comments. Explain the issue first: In CpuCommonFeaturesLib.inf -> CpuCommonFeaturesLib.c -> CpuCommonFeaturesLibConstructor() function, it invokes RegisterCpuFeature() to register CPU feature. Some original source codes is here. if (IsCpuFeatureSupported (CPU_FEATURE

Re: [edk2] [Patch 1/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Kinney, Michael D
Star, I agree with your observation. And the API specifically says that EFI_BOOT_SERVICES.AllocatePool() is used, so I agree with your suggested change. However, there are other APIs in the UefiLib implementation that use the MemoryAllocationLib services. Should those be updated too? Mike >

Re: [edk2] [Patch 0/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Kinney, Michael D
Liming, I looks like we still do updates if a new API is added to the UefiLib class. https://github.com/tianocore/edk2/commit/6212b9481d822a6765f8cd264ceb8454291948bd#diff-b3a4a95eeed10a8932c1738829d8cd7f I will update the patch. Mike > -Original Message- > From: Gao, Liming > Sent: W

Re: [edk2] [PATCH] BaseTools/build_rule: pass contents of DTC_FLAGS device tree compiler

2018-01-31 Thread Gao, Liming
Ard: Do you consider to add DTC_FLAGS in tools_def.template file? Its value can be empty. So, user bases on tools_def.txt to know which option can be set. >-Original Message- >From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] >Sent: Thursday, February 01, 2018 5:49 AM >To: edk2-d

Re: [edk2] [Patch 1/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Zeng, Star
Hi Mike, UefiLib is capable to be used by SMM Core or SMM driver before SmmReadyToLock. And the new interface has the comment below. +The returned buffer is allocated using +EFI_BOOT_SERVICES.AllocatePool(). The caller is +

Re: [edk2] [Patch] BaseTools: Structure Pcd in CommandLine.

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: Feng, Bob C >Sent: Wednesday, January 31, 2018 4:49 PM >To: edk2-devel@lists.01.org >Cc: Feng, Bob C ; Gao, Liming >Subject: [Patch] BaseTools: Structure Pcd in CommandLine. > >Contributed-under: TianoCore Contribution Agreement 1.1 >Sig

Re: [edk2] [PATCH 0/3] UefiCpuPkg/PiSmmCpuDxeSmm: fix IA32 SmmStartup() regression on KVM

2018-01-31 Thread Wang, Jian J
Hi Laszlo, Thank you very much for fixing this issue. Regards, Jian > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Tuesday, January 30, 2018 11:34 PM > To: edk2-devel-01 > Cc: Dong, Eric ; Wang, Jian J ; > Yao, Jiewen ; Paolo Bonzini ; > Ni, Ruiyu > Subje

Re: [edk2] [Patch 0/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Gao, Liming
Mike: Just confirm. Do we still need to add new API in IntelFrameworkPkg FrameworkUefiLib? I think we don't need add new feature in IntelFrameworkPkg and IntelFrameworkModulePkg. >-Original Message- >From: Kinney, Michael D >Sent: Thursday, February 01, 2018 7:33 AM >To: edk2-devel@li

Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and NULL detection

2018-01-31 Thread Wang, Jian J
You're right. Using a mask or separating the API into two (SetMemoryAttributes/ClearMemoryAttributes) is much better and can avoid many potential issues. Regards, Jian > -Original Message- > From: Ni, Ruiyu > Sent: Tuesday, January 30, 2018 12:38 PM > To: Wang, Jian J ; edk2-devel@lists

Re: [edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and NULL detection

2018-01-31 Thread Wang, Jian J
gCpu->SetMemoryAttributes() called by SetUefiImageMemoryAttributes() will return without any problem if Length is 0. Regards, Jian > -Original Message- > From: Yao, Jiewen > Sent: Tuesday, January 30, 2018 10:09 AM > To: Wang, Jian J ; edk2-devel@lists.01.org > Cc: Zeng, Star ; Dong, Eri

Re: [edk2] [PATCH edk2-platforms v2 02/15] Hisilicon/D05: Add PPTT support

2018-01-31 Thread Jeremy Linton
Hi, On 01/26/2018 02:00 AM, Ming Huang wrote: Add Processor Properties Topology Table, PPTT include Processor hierarchy node, Cache Type Structure and ID structure. PPTT is needed for lscpu command to show socket information correctly. https://bugs.linaro.org/show_bug.cgi?id=3206 Contributed-

Re: [edk2] [PATCH 4/6] UefiCpuPkg/PiSmmCpuDxeSmm: Enable NXE if it's supported

2018-01-31 Thread Wang, Jian J
Very good analysis and investigation. Regards, Jian > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Tuesday, January 30, 2018 3:49 AM > To: Wang, Jian J ; edk2-devel@lists.01.org > Cc: Ni, Ruiyu ; Paolo Bonzini ; Yao, > Jiewen ; Dong, Eric ; Radim > Kr?má? >

Re: [edk2] [Patch 1/3] MdeModulePkg/EsrtFmpDxe: Add EsrtFmpDxe module

2018-01-31 Thread Kinney, Michael D
Star, Thanks for the feedback. I agree with all comments. I will send V2 soon. Mike > -Original Message- > From: Zeng, Star > Sent: Thursday, January 25, 2018 9:33 PM > To: Kinney, Michael D ; edk2- > de...@lists.01.org > Cc: Ni, Ruiyu ; Dong, Eric > ; Yao, Jiewen > ; Kinney, Michael D

Re: [edk2] [Patch 1/3] MdeModulePkg/EsrtFmpDxe: Add EsrtFmpDxe module

2018-01-31 Thread Kinney, Michael D
Ray, I preserved the BSD 2-clause license style that was used in the MS_UEFI repository that this patch is based on. The license header in most files in the edk2 repository provide a link to the BSD 2-clause license and are also covered by the License.txt file in the root of the edk2 repository

[edk2] [staging/edk2-test Patch] MdePkgUnitTest: Add UefiLib unit tests

2018-01-31 Thread Kinney, Michael D
Add UefiLib unit tests for the new API EfiLocateProtocolBuffer(). Cc: Sean Brogan Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- MdePkgUnitTest/MdePkgUnitTest.dsc | 8 +- MdePkgUnitTest/UefiLib/UefiLibUnitTests.c | 266 +

[edk2] [Patch 0/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=838 Add new API to the UefiLib that locates and returns an array of protocols instances that match a given protocol. Branch for review: https://github.com/mdkinney/edk2/tree/Bug_838_EfiLocateProtocolBuffer_V3 Cc: Sean Brogan Cc: Jiewen Yao Cc: Li

[edk2] [Patch 1/1] MdePkg/UefiLib: Add EfiLocateProtocolBuffer()

2018-01-31 Thread Kinney, Michael D
From: Michael D Kinney https://bugzilla.tianocore.org/show_bug.cgi?id=838 Add new API to the UefiLib that locates and returns an array of protocols instances that match a given protocol. Cc: Sean Brogan Cc: Jiewen Yao Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Sig

[edk2] [Patch] Expression spec: update format to support flexible Pcd format

2018-01-31 Thread Yonghong Zhu
Cc: Liming Gao Cc: Michael Kinney Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- 2_expression_overview.md | 13 +++-- 3_expression_format.md | 30 +++--- 2 files changed, 30 insertions(+), 13 deletions(

Re: [edk2] [PATCH 1/3] UefiCpuPkg/PiSmmCpuDxeSmm: update comments in IA32 SmmStartup()

2018-01-31 Thread Kinney, Michael D
Laszlo, I agree the Unaligned functions have issues. We should see if we could change the param type. It should be a backwards compatible change to go from a type specific pointer to VOID *. But need to check with all supported compilers. We can have arch specific functions and macros. There are

[edk2] [PATCH] BaseTools/build_rule: pass contents of DTC_FLAGS device tree compiler

2018-01-31 Thread Ard Biesheuvel
To allow device tree compilation to be customized at the platform or module level, pass the contents of the DTC_FLAGS variable on the dtc command line. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/build_rule.template | 2 +- 1 file chan

[edk2] [PATCH v2 1/1] MdePkg/Include: Add management mode FV file type and depex.

2018-01-31 Thread Supreeth Venkatesh
As per PI specification v1.6, As per section 2.1.4.1, The following file types exist: Table 3. Defined File Types Name Value EFI_FV_FILETYPE_RAW0x01 EFI_FV_FILETYPE_FREEFORM 0x02 EFI_FV_FILETYPE_SECURITY_CORE 0x03 EFI_FV_F

Re: [edk2] [Patch] MdePkg SafeIntLib: Update API definition to use the same output name

2018-01-31 Thread Kinney, Michael D
Reviewed-by: Michael D Kinney > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] > On Behalf Of Liming Gao > Sent: Wednesday, January 31, 2018 4:27 AM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch] MdePkg SafeIntLib: Update API > definition to use th

Re: [edk2] [RFC v5 0/8] Stack trace support in X64 exception handling

2018-01-31 Thread Paulo Alcantara
"Yao, Jiewen" writes: Hi Jiewen, > === > OVMF IA32: DXE worked, but SMM not. > > Since the page fault is only occurring in IA32 with no paging enabled > (default case), I suspect that when we don't have paging, we are unable > to successfully validate the memory address whe

[edk2] [Patch] DSC spec: Add flexible PCD value format into spec

2018-01-31 Thread Yonghong Zhu
Cc: Liming Gao Cc: Michael Kinney Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- 3_edk_ii_dsc_file_format/310_pcd_sections.md | 160 + .../33_platform_dsc_definition.md | 74 +++--- 2 file

[edk2] [Patch] INF spec: Add flexible PCD value format into spec

2018-01-31 Thread Yonghong Zhu
Cc: Liming Gao Cc: Michael Kinney Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- .../32_component_inf_definition.md | 71 +- 3_edk_ii_inf_file_format/38_pcd_sections.md| 39 +++- 2 fil

[edk2] [Patch] FDF spec: Add flexible PCD value format into spec

2018-01-31 Thread Yonghong Zhu
Cc: Liming Gao Cc: Michael Kinney Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- 2_fdf_design_discussion/24_[fd]_sections.md | 6 --- 2_fdf_design_discussion/25_[fv]_sections.md | 6 --- 2_fdf_design_discussion/26_[capsule

[edk2] [Patch] DEC spec: Add flexible PCD value format into spec

2018-01-31 Thread Yonghong Zhu
Cc: Liming Gao Cc: Michael Kinney Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- 3_edk_ii_dec_file_format/310_pcd_sections.md | 14 ++--- .../32_package_declaration_dec_definitions.md | 70 +- 2 files chan

[edk2] [Patch] Build spec: Add flexible PCD value format into spec

2018-01-31 Thread Yonghong Zhu
Cc: Liming Gao Cc: Michael Kinney Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- 7_build_environment/73_guided_tools.md | 8 +-- .../82_auto-generation_process.md | 18 +++ appendix_d_buildexe_command/d

Re: [edk2] [Patch] MdePkg SafeIntLib: Update API definition to use the same output name

2018-01-31 Thread Laszlo Ersek
On 01/31/18 13:27, Liming Gao wrote: > In SafeUintnToChar8(), update its output parameter name. > Update pui8Result --> Result to match its library implementation > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Liming Gao > --- > MdePkg/Include/Library/SafeIntLib.h |

Re: [edk2] [RFC] Remove X86 .asm and .S assembly files in EDK2

2018-01-31 Thread Laszlo Ersek
On 01/31/18 12:06, Gao, Liming wrote: > Edk2 has used nasm assembly file for all tool chains. So, IA32 and > X64 .asm and .S assembly files can be removed if their nasm files are > ready. It can save the maintain effort and avoid the confuse. > > > > If you have any comments on this change, plea

[edk2] [Patch] MdePkg SafeIntLib: Update API definition to use the same output name

2018-01-31 Thread Liming Gao
In SafeUintnToChar8(), update its output parameter name. Update pui8Result --> Result to match its library implementation Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- MdePkg/Include/Library/SafeIntLib.h | 12 ++-- 1 file changed, 6 insertions(+),

Re: [edk2] [Patch] BaseTools: Support multiple .h file

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: Feng, Bob C >Sent: Monday, January 29, 2018 2:10 PM >To: edk2-devel@lists.01.org >Cc: Feng, Bob C ; Gao, Liming >Subject: [Patch] BaseTools: Support multiple .h file > >for structure Pcd declaration in DEC file. > >Contributed-under: Tia

Re: [edk2] [Patch] BaseTool: Add comments in PcdValueInit.c.

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: Feng, Bob C >Sent: Wednesday, January 31, 2018 5:45 PM >To: edk2-devel@lists.01.org >Cc: Feng, Bob C ; Gao, Liming >Subject: [Patch] BaseTool: Add comments in PcdValueInit.c. > >Add Comments for __FLEXIBLE_SIZE () statement. > >Contribut

Re: [edk2] [Patch] BaseTool: Enhance error handling.

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >BobCF >Sent: Wednesday, January 31, 2018 5:32 PM >To: edk2-devel@lists.01.org >Cc: Gao, Liming >Subject: [edk2] [Patch] BaseTool: Enhance error handling. > >Contributed-un

Re: [edk2] [PATCH 0/3] UefiCpuPkg/PiSmmCpuDxeSmm: fix IA32 SmmStartup() regression on KVM

2018-01-31 Thread Laszlo Ersek
On 01/30/18 16:33, Laszlo Ersek wrote: > Repo: https://github.com/lersek/edk2.git > Branch: smm_startup_ia32_nocond > > This small series fixes the IA32 SMM regression on KVM that I reported > recently. The first two patches are cleanups (no functional changes), > the third patch is the fix. > >

[edk2] [Patch 0/2] BaseTools GNUmakefile: Move HOST_ARCH detection into common makefile

2018-01-31 Thread Liming Gao
Liming Gao (2): BaseTools GNUmakefile: Move HOST_ARCH detection into common makefile BaseTools GNUmakefile: Remove HOST_ARCH in every tool Makefile BaseTools/Source/C/BootSectImage/GNUmakefile| 3 +-- BaseTools/Source/C/BrotliCompress/GNUmakefile | 3 +-- BaseTools/Source/C/Common/GN

[edk2] [Patch 1/2] BaseTools GNUmakefile: Move HOST_ARCH detection into common makefile

2018-01-31 Thread Liming Gao
With this change, enter single tool directory, make can pass. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- BaseTools/Source/C/Makefiles/header.makefile | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/BaseT

[edk2] [Patch 2/2] BaseTools GNUmakefile: Remove HOST_ARCH in every tool Makefile

2018-01-31 Thread Liming Gao
HOST_ARCH has been moved into the common header.makefile Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- BaseTools/Source/C/BootSectImage/GNUmakefile| 3 +-- BaseTools/Source/C/BrotliCompress/GNUmakefile | 3 +-- BaseTools/Source/C/Common/GNUmakefile

Re: [edk2] [PATCH v2] PcAtChipsetPkg: Add PeiAcpiTimerLib to save PerformanceCounterFrequency in HOB

2018-01-31 Thread Gao, Liming
Star: Thanks for you feedback. I will update the patch and push it. >-Original Message- >From: Zeng, Star >Sent: Friday, January 26, 2018 1:57 PM >To: Gao, Liming ; edk2-devel@lists.01.org >Cc: Zeng, Star >Subject: RE: [edk2] [PATCH v2] PcAtChipsetPkg: Add PeiAcpiTimerLib to save >Perf

[edk2] [RFC] Remove X86 .asm and .S assembly files in EDK2

2018-01-31 Thread Gao, Liming
Edk2 has used nasm assembly file for all tool chains. So, IA32 and X64 .asm and .S assembly files can be removed if their nasm files are ready. It can save the maintain effort and avoid the confuse. If you have any comments on this change, please let me know. Thanks Liming ___

Re: [edk2] [PATCH 1/3] UefiCpuPkg/PiSmmCpuDxeSmm: update comments in IA32 SmmStartup()

2018-01-31 Thread Laszlo Ersek
On 01/31/18 06:54, Ni, Ruiyu wrote: > Laszlo, Mike, > Considering this patch doesn't make the code worse, > actually improved a tiny bit, can we firstly check in the three patches? I agree; the PatchAssembly() discussion is taking quite a bit of thought, meanwhile IA32 SMM is broken on KVM -- and

Re: [edk2] [PATCH 1/3] UefiCpuPkg/PiSmmCpuDxeSmm: update comments in IA32 SmmStartup()

2018-01-31 Thread Laszlo Ersek
On 01/31/18 06:44, Ni, Ruiyu wrote: > Mike, Laszlo, > Does the patch only apply to the operand? > If so, PatchAssembly looks too general. > How about the name like PatchAssemblyOperand? Originally I meant to call the function "PatchInstruction", but then I thought it could be used for patching any

Re: [edk2] [PATCH 1/3] UefiCpuPkg/PiSmmCpuDxeSmm: update comments in IA32 SmmStartup()

2018-01-31 Thread Laszlo Ersek
On 01/30/18 23:25, Kinney, Michael D wrote: > Laszlo, > > I agree that the function is better than a macro. > > I thought of the alignment issues as well. CopyMem() > is a good solution. We could also consider > WriteUnalignedxx() functions in BaseLib. IMO, the WriteUnalignedxx functions are a

Re: [edk2] [Patch] BaseTools CommonLib: Remove the unnecessary print message in PcdValueCommon

2018-01-31 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Liming Gao Sent: Wednesday, January 31, 2018 5:04 PM To: edk2-devel@lists.01.org Subject: [edk2] [Patch] BaseTools CommonLib: Remove the unnece

Re: [edk2] [Patch] UefiCpuPkg: Remove the unused file ResetVec.asm16

2018-01-31 Thread Laszlo Ersek
On 01/31/18 10:45, Liming Gao wrote: > ResetVec.nasmb is used. ResetVec.asm16 can be retired. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Liming Gao > --- > UefiCpuPkg/SecCore/Ia32/ResetVec.asm16 | 106 > - > 1 file changed, 106 d

[edk2] [Patch] UefiCpuPkg: Remove the unused file ResetVec.asm16

2018-01-31 Thread Liming Gao
ResetVec.nasmb is used. ResetVec.asm16 can be retired. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- UefiCpuPkg/SecCore/Ia32/ResetVec.asm16 | 106 - 1 file changed, 106 deletions(-) delete mode 100644 UefiCpuPkg/SecCore/Ia3

[edk2] [Patch] BaseTool: Add comments in PcdValueInit.c.

2018-01-31 Thread BobCF
Add Comments for __FLEXIBLE_SIZE () statement. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/Python/Workspace/DscBuildData.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/Pyt

Re: [edk2] [PATCH] UefiCpuPkg: Enhance CPU feature dependency check

2018-01-31 Thread Laszlo Ersek
On 01/31/18 08:00, Song, BinX wrote: > Current CPU feature dependency check will hang on when meet below or > similar case: > if (IsCpuFeatureSupported (CPU_FEATURE_AESNI)) { > Status = RegisterCpuFeature ( > "AESNI", > AesniGetConfigData, > AesniSupport, >

Re: [edk2] difference between asm16 and asm files

2018-01-31 Thread Gao, Liming
Tiger: Nasm compiler supports to generate 16bit raw code. User doesn't need to install the additional tool. And, the raw code is 16bit code. You need 16bit assembler. It is also nasm compiler. So, it is obvious to use nasm to directly do it. Thanks Liming >-Original Message- >From: ed

[edk2] [Patch] BaseTool: Enhance error handling.

2018-01-31 Thread BobCF
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/Python/Workspace/DscBuildData.py | 116 - .../Source/Python/Workspace/MetaFileParser.py | 3 + 2 files changed, 70 insertions(+), 49 deletions(-) diff

[edk2] [Patch] BaseTools CommonLib: Remove the unnecessary print message in PcdValueCommon

2018-01-31 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- BaseTools/Source/C/Common/PcdValueCommon.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/C/Common/PcdValueCommon.c index 92328da..2

Re: [edk2] [Patch] DSC spec: Update Skuid value to support Hex number

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: Zhu, Yonghong >Sent: Tuesday, January 23, 2018 11:18 AM >To: edk2-devel@lists.01.org >Cc: Gao, Liming ; Kinney, Michael D >; Shaw, Kevin W >Subject: [Patch] DSC spec: Update Skuid value to support Hex number > >Original Skuid value only

Re: [edk2] [Patch] BaseTools: Update BPDG to support L'' and '' format as VPD Pcd Value

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >Yonghong Zhu >Sent: Tuesday, January 30, 2018 11:20 PM >To: edk2-devel@lists.01.org >Subject: [edk2] [Patch] BaseTools: Update BPDG to support L'' and '' format as >VPD Pcd

Re: [edk2] [Patch] BaseTools: Fix the bug to align VPD PCD based on value type

2018-01-31 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >Yonghong Zhu >Sent: Tuesday, January 30, 2018 2:57 PM >To: edk2-devel@lists.01.org >Subject: [edk2] [Patch] BaseTools: Fix the bug to align VPD PCD based on >value type > >

[edk2] [Patch] BaseTools: Structure Pcd in CommandLine.

2018-01-31 Thread BobCF
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/Python/AutoGen/AutoGen.py| 110 +++- BaseTools/Source/Python/Common/Expression.py | 2 +- BaseTools/Source/Python/Common/Misc.py| 2 +- BaseToo