TianoCore EDK2 master
Loading...
Searching...
No Matches
Exception.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS InitializeExceptions (IN EFI_CPU_ARCH_PROTOCOL *Cpu)
 
EFI_STATUS RegisterInterruptHandler (IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler)
 

Detailed Description

Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
Portions Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Exception.c.

Function Documentation

◆ InitializeExceptions()

EFI_STATUS InitializeExceptions ( IN EFI_CPU_ARCH_PROTOCOL gCpu)

Initialize interrupt handling for DXE phase.

Parameters
CpuA pointer of EFI_CPU_ARCH_PROTOCOL instance.
Returns
VOID.

Definition at line 15 of file Exception.c.

◆ RegisterInterruptHandler()

EFI_STATUS RegisterInterruptHandler ( IN EFI_EXCEPTION_TYPE  InterruptType,
IN EFI_CPU_INTERRUPT_HANDLER  InterruptHandler 
)

This function registers and enables the handler specified by InterruptHandler for a processor interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the handler for the processor interrupt or exception type specified by InterruptType is uninstalled. The installed handler is called once for each processor interrupt or exception.

Parameters
InterruptTypeA pointer to the processor's current interrupt state. Set to TRUE if interrupts are enabled and FALSE if interrupts are disabled.
InterruptHandlerA pointer to a function of type EFI_CPU_INTERRUPT_HANDLER that is called when a processor interrupt occurs. If this parameter is NULL, then the handler will be uninstalled.
Return values
EFI_SUCCESSThe handler for the processor interrupt was successfully installed or uninstalled.
EFI_ALREADY_STARTEDInterruptHandler is not NULL, and a handler for InterruptType was previously installed.
EFI_INVALID_PARAMETERInterruptHandler is NULL, and a handler for InterruptType was not previously installed.
EFI_UNSUPPORTEDThe interrupt specified by InterruptType is not supported.

Definition at line 93 of file Exception.c.