Enhance memory copy logic for PEI core image read. The change uses CopyMem() library function for unshadowed version and uses inline implementation for a shadowed version. This reduces PE image reading time to 1/5 - 1/10 when code cache is disabled. The change also fixed a memory leak when allocating shadow space for image read function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10038 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -189,6 +189,10 @@ typedef struct{
|
||||
// available or not.
|
||||
//
|
||||
UINT64 *PeiCodeMemoryRangeUsageBitMap;
|
||||
//
|
||||
// This field points to the shadowed image read function
|
||||
//
|
||||
PE_COFF_LOADER_READ_FILE ShadowedImageRead;
|
||||
} PEI_CORE_INSTANCE;
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user