MdeModulePkg: make internal functions STATIC in Core/Dxe/Misc/PropertiesTable.c

Add STATIC to functions that are only used internally.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: "Jaben Carsey" <jaben.carsey@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17809 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Ard Biesheuvel 2015-07-02 07:32:22 +00:00 committed by abiesheuvel
parent 8171f0265b
commit 2caab142ce
1 changed files with 21 additions and 0 deletions

View File

@ -94,6 +94,7 @@ EFI_LOCK mPropertiesTableLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTI
@return The number of bytes associated with the number of EFI_PAGEs specified @return The number of bytes associated with the number of EFI_PAGEs specified
by Pages. by Pages.
**/ **/
STATIC
UINT64 UINT64
EfiPagesToSize ( EfiPagesToSize (
IN UINT64 Pages IN UINT64 Pages
@ -113,6 +114,7 @@ EfiPagesToSize (
by Size. by Size.
**/ **/
STATIC
UINT64 UINT64
EfiSizeToPages ( EfiSizeToPages (
IN UINT64 Size IN UINT64 Size
@ -124,6 +126,7 @@ EfiSizeToPages (
/** /**
Acquire memory lock on mPropertiesTableLock. Acquire memory lock on mPropertiesTableLock.
**/ **/
STATIC
VOID VOID
CoreAcquirePropertiesTableLock ( CoreAcquirePropertiesTableLock (
VOID VOID
@ -135,6 +138,7 @@ CoreAcquirePropertiesTableLock (
/** /**
Release memory lock on mPropertiesTableLock. Release memory lock on mPropertiesTableLock.
**/ **/
STATIC
VOID VOID
CoreReleasePropertiesTableLock ( CoreReleasePropertiesTableLock (
VOID VOID
@ -151,6 +155,7 @@ CoreReleasePropertiesTableLock (
@param MemoryMapSize Size, in bytes, of the MemoryMap buffer. @param MemoryMapSize Size, in bytes, of the MemoryMap buffer.
@param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR. @param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
**/ **/
STATIC
VOID VOID
SortMemoryMap ( SortMemoryMap (
IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap, IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
@ -195,6 +200,7 @@ SortMemoryMap (
it is the size of new memory map after merge. it is the size of new memory map after merge.
@param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR. @param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
**/ **/
STATIC
VOID VOID
MergeMemoryMap ( MergeMemoryMap (
IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap, IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
@ -242,6 +248,7 @@ MergeMemoryMap (
@param MemoryMapSize Size, in bytes, of the MemoryMap buffer. @param MemoryMapSize Size, in bytes, of the MemoryMap buffer.
@param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR. @param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
**/ **/
STATIC
VOID VOID
EnforceMemoryMapAttribute ( EnforceMemoryMapAttribute (
IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap, IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
@ -283,6 +290,7 @@ EnforceMemoryMapAttribute (
@return first image record covered by [buffer, length] @return first image record covered by [buffer, length]
**/ **/
STATIC
IMAGE_PROPERTIES_RECORD * IMAGE_PROPERTIES_RECORD *
GetImageRecordByAddress ( GetImageRecordByAddress (
IN EFI_PHYSICAL_ADDRESS Buffer, IN EFI_PHYSICAL_ADDRESS Buffer,
@ -327,6 +335,7 @@ GetImageRecordByAddress (
@param OldRecord A pointer to one old memory map entry. @param OldRecord A pointer to one old memory map entry.
@param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR. @param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
**/ **/
STATIC
UINTN UINTN
SetNewRecord ( SetNewRecord (
IN IMAGE_PROPERTIES_RECORD *ImageRecord, IN IMAGE_PROPERTIES_RECORD *ImageRecord,
@ -422,6 +431,7 @@ SetNewRecord (
@retval 0 no entry need to be splitted. @retval 0 no entry need to be splitted.
@return the max number of new splitted entries @return the max number of new splitted entries
**/ **/
STATIC
UINTN UINTN
GetMaxSplitRecordCount ( GetMaxSplitRecordCount (
IN EFI_MEMORY_DESCRIPTOR *OldRecord IN EFI_MEMORY_DESCRIPTOR *OldRecord
@ -467,6 +477,7 @@ GetMaxSplitRecordCount (
@retval 0 no entry is splitted. @retval 0 no entry is splitted.
@return the real number of splitted record. @return the real number of splitted record.
**/ **/
STATIC
UINTN UINTN
SplitRecord ( SplitRecord (
IN EFI_MEMORY_DESCRIPTOR *OldRecord, IN EFI_MEMORY_DESCRIPTOR *OldRecord,
@ -595,6 +606,7 @@ SplitRecord (
the current memory map. the current memory map.
@param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR. @param DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
**/ **/
STATIC
VOID VOID
SplitTable ( SplitTable (
IN OUT UINTN *MemoryMapSize, IN OUT UINTN *MemoryMapSize,
@ -705,6 +717,7 @@ SplitTable (
@retval EFI_INVALID_PARAMETER One of the parameters has an invalid value. @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
CoreGetMemoryMapPropertiesTable ( CoreGetMemoryMapPropertiesTable (
@ -766,6 +779,7 @@ CoreGetMemoryMapPropertiesTable (
@param SectionAlignment PE/COFF section alignment @param SectionAlignment PE/COFF section alignment
**/ **/
STATIC
VOID VOID
SetPropertiesTableSectionAlignment ( SetPropertiesTableSectionAlignment (
IN UINT32 SectionAlignment IN UINT32 SectionAlignment
@ -787,6 +801,7 @@ SetPropertiesTableSectionAlignment (
@param FirstImageRecordCodeSection first code section in image record @param FirstImageRecordCodeSection first code section in image record
@param SecondImageRecordCodeSection second code section in image record @param SecondImageRecordCodeSection second code section in image record
**/ **/
STATIC
VOID VOID
SwapImageRecordCodeSection ( SwapImageRecordCodeSection (
IN IMAGE_PROPERTIES_RECORD_CODE_SECTION *FirstImageRecordCodeSection, IN IMAGE_PROPERTIES_RECORD_CODE_SECTION *FirstImageRecordCodeSection,
@ -810,6 +825,7 @@ SwapImageRecordCodeSection (
@param ImageRecord image record to be sorted @param ImageRecord image record to be sorted
**/ **/
STATIC
VOID VOID
SortImageRecordCodeSection ( SortImageRecordCodeSection (
IN IMAGE_PROPERTIES_RECORD *ImageRecord IN IMAGE_PROPERTIES_RECORD *ImageRecord
@ -860,6 +876,7 @@ SortImageRecordCodeSection (
@retval TRUE image record is valid @retval TRUE image record is valid
@retval FALSE image record is invalid @retval FALSE image record is invalid
**/ **/
STATIC
BOOLEAN BOOLEAN
IsImageRecordCodeSectionValid ( IsImageRecordCodeSectionValid (
IN IMAGE_PROPERTIES_RECORD *ImageRecord IN IMAGE_PROPERTIES_RECORD *ImageRecord
@ -916,6 +933,7 @@ IsImageRecordCodeSectionValid (
@param FirstImageRecord first image record. @param FirstImageRecord first image record.
@param SecondImageRecord second image record. @param SecondImageRecord second image record.
**/ **/
STATIC
VOID VOID
SwapImageRecord ( SwapImageRecord (
IN IMAGE_PROPERTIES_RECORD *FirstImageRecord, IN IMAGE_PROPERTIES_RECORD *FirstImageRecord,
@ -942,6 +960,7 @@ SwapImageRecord (
/** /**
Sort image record based upon the ImageBase from low to high. Sort image record based upon the ImageBase from low to high.
**/ **/
STATIC
VOID VOID
SortImageRecord ( SortImageRecord (
VOID VOID
@ -987,6 +1006,7 @@ SortImageRecord (
/** /**
Dump image record. Dump image record.
**/ **/
STATIC
VOID VOID
DumpImageRecord ( DumpImageRecord (
VOID VOID
@ -1205,6 +1225,7 @@ Finish:
@return image record @return image record
**/ **/
STATIC
IMAGE_PROPERTIES_RECORD * IMAGE_PROPERTIES_RECORD *
FindImageRecord ( FindImageRecord (
IN EFI_PHYSICAL_ADDRESS ImageBase, IN EFI_PHYSICAL_ADDRESS ImageBase,