TianoCore EDK2
master
Loading...
Searching...
No Matches
ArmCrashDumpDxe.c
Go to the documentation of this file.
1
9
#include <
PiDxe.h
>
10
#include <
Library/DebugLib.h
>
11
#include <
Library/DefaultExceptionHandlerLib.h
>
12
#include <
Library/UefiBootServicesTableLib.h
>
13
#include <
Protocol/Cpu.h
>
14
15
STATIC
EFI_CPU_ARCH_PROTOCOL
*mCpu;
16
17
EFI_STATUS
18
EFIAPI
19
ArmCrashDumpDxeInitialize (
20
IN
EFI_HANDLE
ImageHandle,
21
IN
EFI_SYSTEM_TABLE
*SystemTable
22
)
23
{
24
EFI_STATUS
Status;
25
26
Status =
gBS
->LocateProtocol (&gEfiCpuArchProtocolGuid,
NULL
, (VOID **)&mCpu);
27
ASSERT_EFI_ERROR
(Status);
28
29
return
mCpu->RegisterInterruptHandler (
30
mCpu,
31
EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
,
32
&
DefaultExceptionHandler
33
);
34
}
Cpu.h
DefaultExceptionHandlerLib.h
DefaultExceptionHandler
VOID DefaultExceptionHandler(IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition:
DefaultExceptionHandler.c:189
NULL
#define NULL
Definition:
Base.h:319
STATIC
#define STATIC
Definition:
Base.h:264
IN
#define IN
Definition:
Base.h:279
DebugLib.h
ASSERT_EFI_ERROR
#define ASSERT_EFI_ERROR(StatusParameter)
Definition:
DebugLib.h:462
EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
#define EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS
Definition:
DebugSupport.h:517
PiDxe.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
UefiBootServicesTableLib.h
gBS
EFI_BOOT_SERVICES * gBS
Definition:
UefiBootServicesTableLib.c:17
_EFI_CPU_ARCH_PROTOCOL
Definition:
Cpu.h:259
EFI_SYSTEM_TABLE
Definition:
UefiSpec.h:2028
ArmPkg
Drivers
ArmCrashDumpDxe
ArmCrashDumpDxe.c
Generated on Fri Nov 15 2024 18:01:04 for TianoCore EDK2 by
1.9.6