From: qhuang8 Date: Tue, 13 May 2008 09:09:11 +0000 (+0000) Subject: Minor coding style adjustment for DxeCore. X-Git-Tag: edk2-stable201903~21015 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=db405d1b8948cdfdd3719e5d94af5eb8a9526e62 Minor coding style adjustment for DxeCore. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5196 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index 554a07c42b..5a0efad1b7 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -76,7 +76,7 @@ VOID *mFwVolEventRegistration; // // List of file types supported by dispatcher // -static EFI_FV_FILETYPE mDxeFileTypes[] = { +STATIC EFI_FV_FILETYPE mDxeFileTypes[] = { EFI_FV_FILETYPE_DRIVER, EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER, EFI_FV_FILETYPE_DXE_CORE, diff --git a/MdeModulePkg/Core/Dxe/DxeMain.h b/MdeModulePkg/Core/Dxe/DxeMain.h index 30f7fe33be..63eeeecd74 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.h +++ b/MdeModulePkg/Core/Dxe/DxeMain.h @@ -2269,7 +2269,7 @@ DxeMainUefiDecompressGetInfo ( This protocol is designed so that the decompression algorithm can be implemented without using any memory services. As a result, the Decompress() Function is not allowed to call AllocatePool() or AllocatePages() in its - implementation. It is the caller¡¯s responsibility to allocate and free the + implementation. It is the caller's responsibility to allocate and free the Destination and Scratch buffers. If the compressed source data specified by Source and SourceSize is sucessfully decompressed into Destination, then EFI_SUCCESS is returned. If @@ -2355,7 +2355,7 @@ OpenSectionStream ( callee allocated) of *Buffer. @param AuthenticationStatus A pointer to a caller-allocated UINT32 that indicates the authentication status of the - output buffer. If the input section¡¯s + output buffer. If the input section's GuidedSectionHeader.Attributes field has the EFI_GUIDED_SECTION_AUTH_STATUS_VALID bit as clear, AuthenticationStatus must return diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index b0a5c60f28..1e600a9877 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -840,7 +840,7 @@ DxeMainUefiDecompressGetInfo ( This protocol is designed so that the decompression algorithm can be implemented without using any memory services. As a result, the Decompress() Function is not allowed to call AllocatePool() or AllocatePages() in its - implementation. It is the caller¡¯s responsibility to allocate and free the + implementation. It is the caller's responsibility to allocate and free the Destination and Scratch buffers. If the compressed source data specified by Source and SourceSize is sucessfully decompressed into Destination, then EFI_SUCCESS is returned. If diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c index 42a7a054e6..2c2283d3a0 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c @@ -220,7 +220,7 @@ typedef struct { CHAR16 *GuidString; } GUID_TO_STRING_PROTOCOL_ENTRY; -static const GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = { +STATIC CONST GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = { { &gEfiSecurityArchProtocolGuid, (CHAR16 *)L"Security" }, { &gEfiCpuArchProtocolGuid, (CHAR16 *)L"CPU" }, { &gEfiMetronomeArchProtocolGuid, (CHAR16 *)L"Metronome" }, diff --git a/MdeModulePkg/Core/Dxe/Event/timer.c b/MdeModulePkg/Core/Dxe/Event/timer.c index 1388512fb8..35ab5874a2 100644 --- a/MdeModulePkg/Core/Dxe/Event/timer.c +++ b/MdeModulePkg/Core/Dxe/Event/timer.c @@ -64,12 +64,12 @@ CoreInsertEventTimer ( // Internal data // -static LIST_ENTRY mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList); -static EFI_LOCK mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL - 1); -static EFI_EVENT mEfiCheckTimerEvent; +STATIC LIST_ENTRY mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList); +STATIC EFI_LOCK mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL - 1); +STATIC EFI_EVENT mEfiCheckTimerEvent; -static EFI_LOCK mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL); -static UINT64 mEfiSystemTime = 0; +STATIC EFI_LOCK mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL); +STATIC UINT64 mEfiSystemTime = 0; // // Timer functions diff --git a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c b/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c index e318b4239f..afe668fe45 100644 --- a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c +++ b/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c @@ -17,13 +17,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include -static EFI_DEBUG_IMAGE_INFO_TABLE_HEADER mDebugInfoTableHeader = { +STATIC EFI_DEBUG_IMAGE_INFO_TABLE_HEADER mDebugInfoTableHeader = { 0, // volatile UINT32 UpdateStatus; 0, // UINT32 TableSize; NULL // EFI_DEBUG_IMAGE_INFO *EfiDebugImageInfoTable; }; -static EFI_SYSTEM_TABLE_POINTER *mDebugTable = NULL; +STATIC EFI_SYSTEM_TABLE_POINTER *mDebugTable = NULL; diff --git a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c index 54049cffb6..7ed011cb49 100644 --- a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c +++ b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c @@ -272,7 +272,7 @@ FreeChildNode ( stream. @param AuthenticationStatus A pointer to a caller-allocated UINT32 that indicates the authentication status of the - output buffer. If the input section¡¯s + output buffer. If the input section's GuidedSectionHeader.Attributes field has the EFI_GUIDED_SECTION_AUTH_STATUS_VALID bit as clear, AuthenticationStatus must return @@ -531,7 +531,7 @@ OpenSectionStream ( callee allocated) of *Buffer. @param AuthenticationStatus A pointer to a caller-allocated UINT32 that indicates the authentication status of the - output buffer. If the input section¡¯s + output buffer. If the input section's GuidedSectionHeader.Attributes field has the EFI_GUIDED_SECTION_AUTH_STATUS_VALID bit as clear, AuthenticationStatus must return @@ -1326,7 +1326,7 @@ FreeChildNode ( stream. @param AuthenticationStatus A pointer to a caller-allocated UINT32 that indicates the authentication status of the - output buffer. If the input section¡¯s + output buffer. If the input section's GuidedSectionHeader.Attributes field has the EFI_GUIDED_SECTION_AUTH_STATUS_VALID bit as clear, AuthenticationStatus must return