TianoCore EDK2 master
|
#include "CpuDxe.h"
#include <Library/CpuExceptionHandlerLib.h>
#include <Guid/VectorHandoffTable.h>
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) |
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.
EFI_STATUS InitializeExceptions | ( | IN EFI_CPU_ARCH_PROTOCOL * | gCpu | ) |
Initialize interrupt handling for DXE phase.
Cpu | A pointer of EFI_CPU_ARCH_PROTOCOL instance. |
Definition at line 15 of file Exception.c.
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.
InterruptType | A pointer to the processor's current interrupt state. Set to TRUE if interrupts are enabled and FALSE if interrupts are disabled. |
InterruptHandler | A 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. |
EFI_SUCCESS | The handler for the processor interrupt was successfully installed or uninstalled. |
EFI_ALREADY_STARTED | InterruptHandler is not NULL, and a handler for InterruptType was previously installed. |
EFI_INVALID_PARAMETER | InterruptHandler is NULL, and a handler for InterruptType was not previously installed. |
EFI_UNSUPPORTED | The interrupt specified by InterruptType is not supported. |
Definition at line 93 of file Exception.c.