9#include "PlDebugSupport.h"
51 Status =
gBS->LocateHandleBuffer (
53 &gEfiDebugSupportProtocolGuid,
59 if (Status != EFI_NOT_FOUND) {
62 Status =
gBS->OpenProtocol (
63 HandlePtr[NumHandles],
64 &gEfiDebugSupportProtocolGuid,
65 (VOID **)&DebugSupportProtocolPtr,
68 EFI_OPEN_PROTOCOL_GET_PROTOCOL
70 if ((Status ==
EFI_SUCCESS) && (DebugSupportProtocolPtr->Isa == EFI_ISA)) {
75 Status = EFI_ALREADY_STARTED;
78 }
while (NumHandles > 0);
86 Status =
gBS->OpenProtocol (
88 &gEfiLoadedImageProtocolGuid,
89 (VOID **)&LoadedImageProtocolPtr,
92 EFI_OPEN_PROTOCOL_GET_PROTOCOL
94 ASSERT (!EFI_ERROR (Status));
105 ASSERT (!EFI_ERROR (Status));
114 Status =
gBS->InstallProtocolInterface (
116 &gEfiDebugSupportProtocolGuid,
118 &mDebugSupportProtocolInterface
120 ASSERT (!EFI_ERROR (Status));
VOID EFIAPI InvalidateInstructionCache(VOID)
EFI_STATUS EFIAPI InitializeDebugSupportDriver(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID EFIAPI FreePool(IN VOID *Buffer)
EFI_STATUS EFIAPI RegisterExceptionCallback(IN EFI_DEBUG_SUPPORT_PROTOCOL *This, IN UINTN ProcessorIndex, IN EFI_EXCEPTION_CALLBACK ExceptionCallback, IN EFI_EXCEPTION_TYPE ExceptionType)
EFI_STATUS PlInitializeDebugSupportDriver(VOID)
EFI_STATUS EFIAPI GetMaximumProcessorIndex(IN EFI_DEBUG_SUPPORT_PROTOCOL *This, OUT UINTN *MaxProcessorIndex)
EFI_STATUS EFIAPI PlUnloadDebugSupportDriver(IN EFI_HANDLE ImageHandle)
EFI_STATUS EFIAPI RegisterPeriodicCallback(IN EFI_DEBUG_SUPPORT_PROTOCOL *This, IN UINTN ProcessorIndex, IN EFI_PERIODIC_CALLBACK PeriodicCallback)