[edk2] [PATCH] IntelSiliconPkg IntelVTdDxe: Use ACPI table event to get DMAR table

2017-11-02 Thread Star Zeng
Use ACPI table event to get DMAR table instead of using ACPI SDT notification as ACPI SDT is optional and the default value of PcdInstallAcpiSdtProtocol is FALSE in MdeModulePkg.dec. Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star

[edk2] how to create environmental variable for Shell

2017-11-02 Thread Tiger Liu
Hi, experts: I have a question about creating shell’s environmental variable. Such as : StartupDelay I tried to create this variable at uefi boot phase. …… TmpVal = 2; Status = gRT->SetVariable ( L"StartupDelay",

[edk2] [PATCH 3/3] IntelFrameworkModulePkg: Fix misuses of AllocateCopyPool

2017-11-02 Thread Jian J Wang
AllocateCopyPool(AllocationSize, *Buffer) will copy "AllocationSize" bytes of memory from old "Buffer" to new allocated one. If "AllocationSize" is bigger than size of "Buffer", heap memory overflow occurs during copy. The solution is to allocate pool first then copy the necessary bytes to new

[edk2] [PATCH 1/3] MdeModulePkg: Fix misuses of AllocateCopyPool

2017-11-02 Thread Jian J Wang
AllocateCopyPool(AllocationSize, *Buffer) will copy "AllocationSize" bytes of memory from old "Buffer" to new allocated one. If "AllocationSize" is bigger than size of "Buffer", heap memory overflow occurs during copy. The solution is to allocate pool first then copy the necessary bytes to new

[edk2] [PATCH 2/3] ShellPkg: Fix misuses of AllocateCopyPool

2017-11-02 Thread Jian J Wang
AllocateCopyPool(AllocationSize, *Buffer) will copy "AllocationSize" bytes of memory from old "Buffer" to new allocated one. If "AllocationSize" is bigger than size of "Buffer", heap memory overflow occurs during copy. The solution is to allocate pool first then copy the necessary bytes to new

[edk2] [PATCH 0/3] Fix misuses of AllocateCopyPool

2017-11-02 Thread Jian J Wang
AllocateCopyPool(AllocationSize, *Buffer) will copy "AllocationSize" bytes of memory from old "Buffer" to new allocated one. If "AllocationSize" is bigger than size of "Buffer", heap memory overflow occurs during copy. The solution is to allocate pool first then copy the necessary bytes to new

Re: [edk2] [PATCH 3/3] UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support

2017-11-02 Thread Wang, Jian J
I see. Thanks for the explanation. > -Original Message- > From: Yao, Jiewen > Sent: Friday, November 03, 2017 10:27 AM > To: Wang, Jian J ; Kinney, Michael D > ; Fan Jeff ; edk2- > de...@lists.01.org > Cc: Dong,

Re: [edk2] [PATCH 3/3] UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support

2017-11-02 Thread Yao, Jiewen
Jian That is for compatibility consideration. Once there is UDK release, we never change API. We can only add new one. Or you may break an old platform, that may use new UDK release. Thank you Yao Jiewen > -Original Message- > From: Wang, Jian J > Sent: Friday, November 3, 2017 10:10 AM

Re: [edk2] [PATCH 3/3] UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support

2017-11-02 Thread Yao, Jiewen
HI Jian There is another potential problem. This feature is enabled in InitializeCpuInterruptHandlers(). However, we expect this is enabled in InitializeCpuExceptionHandlers(). In order to get the exception stack in InitializeCpuExceptionHandlers(). We can have 2 ways: A) Let

Re: [edk2] [Patch 1/3] MdeModulePkg: Add new PCD PcdInitValueInTempStack

2017-11-02 Thread Zeng, Star
The MdeModulePkg.uni also needs to be updated for this new PCD, right? Thanks, Star -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Liming Gao Sent: Thursday, November 2, 2017 10:59 AM To: edk2-devel@lists.01.org Subject: [edk2] [Patch 1/3]

[edk2] [PATCH v2] UefiCpuPkg/CpuDxe: Fix multiple entries of RT_CODE in memory map

2017-11-02 Thread Jian J Wang
> v2 > a. Fix an issue which will cause setting capability failure if size is smaller >than a page. More than one entry of RT_CODE memory might cause boot problem for some old OSs. This patch will fix this issue to keep OS compatibility as much as possible. More detailed information, please

Re: [edk2] [Patch 0/3] Add new PCD PcdInitValueInTempStack

2017-11-02 Thread Ard Biesheuvel
On 2 November 2017 at 02:59, Liming Gao wrote: > This PCD repalces the hard code 0x5AA55AA5 in the different modules. > > Liming Gao (3): > MdeModulePkg: Add new PCD PcdInitValueInTempStack > MdeModulePkg: Update PeiCore consumes PCD to get the init value in > temp

Re: [edk2] Official port of Python on EDK2

2017-11-02 Thread Blibbet
On 11/02/2017 09:41 AM, Jayaprakash, N wrote: > Would you consider adding thread support in this port of Python for EDK2 shell? FYI, this library adds thread support to UEFI: https://github.com/Openwide-Ingenierie/GreenThreads-UEFI Note that the library is GPLv2, ...but the author (a 1-person

Re: [edk2] Official port of Python on EDK2

2017-11-02 Thread Jayaprakash, N
Would you consider adding thread support in this port of Python for EDK2 shell? Regards, JP -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Richardson, Brian Sent: Thursday, November 2, 2017 7:07 AM To: Thiebaud Weksteen ;

Re: [edk2] Build error in StdLib with VS 2015 compiler

2017-11-02 Thread Karunakar P
Then it works fine. But the problem is it may miss the backward compatibility with other compilers. I guess better to define as mentioned previously. Thank You, Karunakar -Original Message- From: Gao, Liming [mailto:liming@intel.com] Sent: Thursday, November 02, 2017 7:33 PM To:

Re: [edk2] [Patch] BaseTools: parse map file generated by Xcode on Mac

2017-11-02 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: Zhu, Yonghong > Sent: Thursday, November 2, 2017 1:18 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming > Subject: [Patch] BaseTools: parse map file generated by Xcode on Mac > > Add

Re: [edk2] Build error in StdLib with VS 2015 compiler

2017-11-02 Thread Gao, Liming
Could you remove them, and build again? > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Karunakar P > Sent: Thursday, November 2, 2017 8:32 PM > To: 'Tim Lewis' ; edk2-devel@lists.01.org > Cc: Ye, Ting

Re: [edk2] Build error in StdLib with VS 2015 compiler

2017-11-02 Thread Karunakar P
It is C only. -Karunakar -Original Message- From: Tim Lewis [mailto:tim.le...@insyde.com] Sent: Thursday, November 02, 2017 8:59 AM To: Karunakar P; edk2-devel@lists.01.org Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin' Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler Are

Re: [edk2] Official port of Python on EDK2

2017-11-02 Thread Thiebaud Weksteen
Christian, Antoine, Brett: Thanks for the clarification on what an official support would require. As Christian mentioned, sending simple headers patches is an obvious starting point, no matter if the support becomes official or not. Brian: Thanks for your email. As I suggested, by having the

[edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Minor BIOS ID.

2017-11-02 Thread lushifex
Update Minor version of BIOS ID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex --- Platform/BroxtonPlatformPkg/BiosId.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/BroxtonPlatformPkg/BiosId.env