X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FDebugSupportDxe%2FDebugSupport.c;h=ed4d86038aa8d75b72f7d8a752e53e4d4139f613;hb=519f076a478a7da9ff4b9d5327a993b1fc2968e8;hp=33f2ad12692decbb37b1c59d74d9defe59137ed6;hpb=fb0b259e4e440577dcd6ba6722c252d90605b3e9;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c index 33f2ad1269..ed4d86038a 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c @@ -15,7 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // private header files // -#include "plDebugSupport.h" +#include "PlDebugSupport.h" // // This is a global that is the actual interface @@ -28,31 +28,26 @@ EFI_DEBUG_SUPPORT_PROTOCOL gDebugSupportProtocolInterface = { InvalidateInstructionCache }; -// -// Driver Entry Point -// + +/** + Debug Port Driver entry point. + + Checks to see there's not already a DebugSupport protocol installed for + the selected processor before installing protocol. + + @param[in] ImageHandle The firmware allocated handle for the EFI image. + @param[in] SystemTable A pointer to the EFI System Table. + + @retval EFI_SUCCESS The entry point is executed successfully. + @retval EFI_ALREADY_STARTED DebugSupport protocol is installed already. + @retval other Some error occurs when executing this entry point. + +**/ EFI_STATUS InitializeDebugSupportDriver ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) -/*++ - -Routine Description: - Driver entry point. Checks to see there's not already a DebugSupport protocol - installed for the selected processor before installing protocol. - -Arguments: - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - -Returns: - - EFI_STATUS - ---*/ -// TODO: ImageHandle - add argument and description to function comment -// TODO: SystemTable - add argument and description to function comment { EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocolPtr; EFI_STATUS Status; @@ -111,12 +106,12 @@ Returns: goto ErrExit; } - LoadedImageProtocolPtr->Unload = plUnloadDebugSupportDriver; + LoadedImageProtocolPtr->Unload = PlUnloadDebugSupportDriver; // // Call hook for platform specific initialization // - Status = plInitializeDebugSupportDriver (); + Status = PlInitializeDebugSupportDriver (); ASSERT (!EFI_ERROR (Status)); if (Status != EFI_SUCCESS) { goto ErrExit;