MdeModulePkg: Move Some DXE MAT Logic to ImagePropertiesRecordLib
Move some DXE MAT logic to ImagePropertiesRecordLib to consolidate code and enable unit testability. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Dandan Bi <dandan.bi@intel.com> Signed-off-by: Taylor Beebe <taylor.d.beebe@gmail.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
561362368b
commit
7284c44951
@@ -32,6 +32,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#include <Library/DxeServicesTableLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/UefiLib.h>
|
||||
#include <Library/ImagePropertiesRecordLib.h>
|
||||
|
||||
#include <Guid/EventGroup.h>
|
||||
#include <Guid/MemoryAttributesTable.h>
|
||||
@@ -66,29 +67,6 @@ extern LIST_ENTRY mGcdMemorySpaceMap;
|
||||
|
||||
STATIC LIST_ENTRY mProtectedImageRecordList;
|
||||
|
||||
/**
|
||||
Sort code section in image record, based upon CodeSegmentBase from low to high.
|
||||
|
||||
@param ImageRecord image record to be sorted
|
||||
**/
|
||||
VOID
|
||||
SortImageRecordCodeSection (
|
||||
IN IMAGE_PROPERTIES_RECORD *ImageRecord
|
||||
);
|
||||
|
||||
/**
|
||||
Check if code section in image record is valid.
|
||||
|
||||
@param ImageRecord image record to be checked
|
||||
|
||||
@retval TRUE image record is valid
|
||||
@retval FALSE image record is invalid
|
||||
**/
|
||||
BOOLEAN
|
||||
IsImageRecordCodeSectionValid (
|
||||
IN IMAGE_PROPERTIES_RECORD *ImageRecord
|
||||
);
|
||||
|
||||
/**
|
||||
Get the image type.
|
||||
|
||||
|
Reference in New Issue
Block a user