75 OUT VOID **OutputBuffer,
77 OUT UINT32 *AuthenticationStatus
146 OUT VOID **OutputBuffer,
148 OUT UINT32 *AuthenticationStatus
152 UINT8 *ScratchBuffer;
153 UINT32 ScratchBufferSize;
154 UINT32 OutputBufferSize;
155 UINT16 SectionAttribute;
160 ScratchBuffer =
NULL;
172 if (EFI_ERROR (Status)) {
173 DEBUG ((DEBUG_ERROR,
"GetInfo from guided section Failed - %r\n", Status));
177 if (ScratchBufferSize != 0) {
182 if (ScratchBuffer ==
NULL) {
183 return EFI_OUT_OF_RESOURCES;
192 if (*OutputBuffer ==
NULL) {
193 return EFI_OUT_OF_RESOURCES;
196 DEBUG ((DEBUG_INFO,
"Customized Guided section Memory Size required is 0x%x and address is 0x%p\n", OutputBufferSize, *OutputBuffer));
199 Status = ExtractGuidedSectionDecode (
205 if (EFI_ERROR (Status)) {
209 DEBUG ((DEBUG_ERROR,
"Extract guided section Failed - %r\n", Status));
213 *OutputSize = (
UINTN)OutputBufferSize;
240 UINTN ExtractHandlerNumber;
246 ExtractHandlerNumber = ExtractGuidedSectionGetGuidList (&ExtractHandlerGuidTable);
251 if (ExtractHandlerNumber > 0) {
253 ASSERT (GuidPpi !=
NULL);
254 while (ExtractHandlerNumber-- > 0) {
255 GuidPpi->
Flags = EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;
256 GuidPpi->
Ppi = (VOID *)&mCustomGuidedSectionExtractionPpi;
257 GuidPpi->
Guid = &ExtractHandlerGuidTable[ExtractHandlerNumber];
EFI_STATUS EFIAPI PeiServicesInstallPpi(IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList)
#define ASSERT_EFI_ERROR(StatusParameter)
#define DEBUG(Expression)
#define EFI_GUIDED_SECTION_PROCESSING_REQUIRED
VOID * EFI_PEI_FILE_HANDLE
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)
VOID *EFIAPI AllocatePages(IN UINTN Pages)
#define EFI_SIZE_TO_PAGES(Size)