TianoCore EDK2 master
Loading...
Searching...
No Matches
Exception.c
Go to the documentation of this file.
1
10#include "CpuDxe.h"
13
15InitializeExceptions (
16 VOID
17 )
18{
19 // initialize the CpuExceptionHandlerLib so we take over the exception vector table from the DXE Core
20 InitializeCpuExceptionHandlers (NULL);
21
22 //
23 // On a DEBUG build, unmask SErrors so they are delivered right away rather
24 // than when the OS unmasks them. This gives us a better chance of figuring
25 // out the cause.
26 //
28 ArmEnableAsynchronousAbort ();
29 );
30
31 return EFI_SUCCESS;
32}
33
56 IN EFI_EXCEPTION_TYPE InterruptType,
57 IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler
58 )
59{
60 // pass down to CpuExceptionHandlerLib
61 return (EFI_STATUS)RegisterCpuInterruptHandler (InterruptType, InterruptHandler);
62}
EFI_STATUS RegisterInterruptHandler(IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler)
Definition: Exception.c:55
VOID(EFIAPI * EFI_CPU_INTERRUPT_HANDLER)(IN CONST EFI_EXCEPTION_TYPE InterruptType, IN CONST EFI_SYSTEM_CONTEXT SystemContext)
Definition: Cpu.h:52
#define NULL
Definition: Base.h:319
#define VOID
Definition: Base.h:269
#define IN
Definition: Base.h:279
#define DEBUG_CODE(Expression)
Definition: DebugLib.h:591
INTN EFI_EXCEPTION_TYPE
Definition: DebugSupport.h:35
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112