TianoCore EDK2 master
Loading...
Searching...
No Matches
ExceptionCommon.h
1
10#ifndef EXCEPTION_COMMON_H_
11#define EXCEPTION_COMMON_H_
12
13#define MAX_DEBUG_MESSAGE_LENGTH 0x100
14
15//
16// For coding convenience, define the maximum valid
17// LoongArch exception.
18// Since UEFI V2.11, it will be present in DebugSupport.h.
19//
20#define MAX_LOONGARCH_EXCEPTION 64
21
22extern INTN mExceptionKnownNameNum;
23
32CONST CHAR8 *
34 IN EFI_EXCEPTION_TYPE ExceptionType
35 );
36
45VOID
46EFIAPI
48 IN CONST CHAR8 *Format,
49 ...
50 );
51
58VOID
60 IN UINTN CurrentEip
61 );
62
69VOID
70EFIAPI
72 IN EFI_EXCEPTION_TYPE InterruptType,
73 IN EFI_SYSTEM_CONTEXT SystemContext
74 );
75
83VOID
84EFIAPI
86 IN EFI_EXCEPTION_TYPE ExceptionType,
87 IN OUT EFI_SYSTEM_CONTEXT SystemContext
88 );
89
97VOID
99 IN EFI_EXCEPTION_TYPE ExceptionType,
100 IN EFI_SYSTEM_CONTEXT SystemContext
101 );
102
112EFIAPI
113GetExceptionType (
114 IN EFI_SYSTEM_CONTEXT SystemContext
115 );
116
126EFIAPI
127GetInterruptType (
128 IN EFI_SYSTEM_CONTEXT SystemContext
129 );
130
131#endif
UINT64 UINTN
INT64 INTN
VOID DumpModuleImageInfo(IN UINTN CurrentEip)
VOID DumpImageAndCpuContent(IN EFI_EXCEPTION_TYPE ExceptionType, IN EFI_SYSTEM_CONTEXT SystemContext)
STATIC CONST CHAR8 * GetExceptionNameStr(IN EFI_EXCEPTION_TYPE ExceptionType)
STATIC VOID EFIAPI InternalPrintMessage(IN CONST CHAR8 *Format,...)
VOID DefaultExceptionHandler(IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
INTN EFI_EXCEPTION_TYPE
Definition: DebugSupport.h:35
VOID EFIAPI IpiInterruptHandler(IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_SYSTEM_CONTEXT SystemContext)