Re: [edk2-devel] [PATCH] UnitTestFrameworkPkg: Add UnitTestPeiServicesTablePointerLib

2023-06-04 Thread Ni, Ray
> +/** > + Allocate Buffer Or Clear Buffer For Global Data. > +**/ > +VOID > +AllocateBufferOrClearBufferForGlobalData ( > + VOID > + ) > +{ > + ZeroMem (&mPrivateData, sizeof (mPrivateData)); > + if (!PSInitDone) { 1. "PSInitDone" doesn't follow edk2 coding style. > +mHobBuffer = Alloc

[edk2-devel] [PATCH] UnitTestFrameworkPkg: Add UnitTestPeiServicesTablePointerLib

2023-05-31 Thread Zhiguang Liu
This library supports a PeiServicesTablePointerLib implementation that allows code dependent upon PeiServicesTable to operate in an isolated execution environment such as within the context of a host-based unit test framework. The unit test should initialize the PeiServicesTable database with any