mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
Set Hob type for FvMainCompactFv to EFI_HOB_TYPE_UNUSED after decompressed. The can improve the performance of Dxe dispatcher.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1706 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
31095724f1
commit
2ea767cc94
@ -104,7 +104,8 @@ EFI_STATUS
|
|||||||
PeiProcessFile (
|
PeiProcessFile (
|
||||||
IN UINT16 SectionType,
|
IN UINT16 SectionType,
|
||||||
IN OUT EFI_FFS_FILE_HEADER **RealFfsFileHeader,
|
IN OUT EFI_FFS_FILE_HEADER **RealFfsFileHeader,
|
||||||
OUT VOID **Pe32Data
|
OUT VOID **Pe32Data,
|
||||||
|
IN EFI_PEI_HOB_POINTERS *OrigHob
|
||||||
);
|
);
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -435,7 +435,8 @@ Returns:
|
|||||||
Status = PeiProcessFile (
|
Status = PeiProcessFile (
|
||||||
SectionType,
|
SectionType,
|
||||||
&FfsFileHeader,
|
&FfsFileHeader,
|
||||||
Pe32Data
|
Pe32Data,
|
||||||
|
&Hob
|
||||||
);
|
);
|
||||||
CopyMem (FileName, &FfsFileHeader->Name, sizeof (EFI_GUID));
|
CopyMem (FileName, &FfsFileHeader->Name, sizeof (EFI_GUID));
|
||||||
return Status;
|
return Status;
|
||||||
@ -650,7 +651,8 @@ Returns:
|
|||||||
Status = PeiProcessFile (
|
Status = PeiProcessFile (
|
||||||
EFI_SECTION_PE32,
|
EFI_SECTION_PE32,
|
||||||
&FfsHeader,
|
&FfsHeader,
|
||||||
&Pe32Data
|
&Pe32Data,
|
||||||
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
@ -675,7 +677,8 @@ EFI_STATUS
|
|||||||
PeiProcessFile (
|
PeiProcessFile (
|
||||||
IN UINT16 SectionType,
|
IN UINT16 SectionType,
|
||||||
IN OUT EFI_FFS_FILE_HEADER **RealFfsFileHeader,
|
IN OUT EFI_FFS_FILE_HEADER **RealFfsFileHeader,
|
||||||
OUT VOID **Pe32Data
|
OUT VOID **Pe32Data,
|
||||||
|
IN EFI_PEI_HOB_POINTERS *OrigHob
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -930,11 +933,17 @@ Returns:
|
|||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (OrigHob != NULL) {
|
||||||
|
//
|
||||||
|
//
|
||||||
|
OrigHob->Header->HobType = EFI_HOB_TYPE_UNUSED;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Reture the FfsHeader that contain Pe32Data.
|
// Reture the FfsHeader that contain Pe32Data.
|
||||||
//
|
//
|
||||||
*RealFfsFileHeader = FfsFileHeader;
|
*RealFfsFileHeader = FfsFileHeader;
|
||||||
return PeiProcessFile (SectionType, RealFfsFileHeader, Pe32Data);
|
return PeiProcessFile (SectionType, RealFfsFileHeader, Pe32Data, OrigHob);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user