|
TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
| VOID | CommonExceptionHandlerWorker (IN EFI_EXCEPTION_TYPE ExceptionType, IN EFI_SYSTEM_CONTEXT SystemContext, IN EXCEPTION_HANDLER_DATA *ExceptionHandlerData) |
| VOID | UpdateIdtTable (IN IA32_IDT_GATE_DESCRIPTOR *IdtTable, IN EXCEPTION_HANDLER_TEMPLATE_MAP *TemplateMap, IN EXCEPTION_HANDLER_DATA *ExceptionHandlerData) |
| EFI_STATUS | InitializeCpuExceptionHandlersWorker (IN EFI_VECTOR_HANDOFF_INFO *VectorInfo OPTIONAL, IN OUT EXCEPTION_HANDLER_DATA *ExceptionHandlerData) |
| EFI_STATUS | RegisterCpuInterruptHandlerWorker (IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler, IN EXCEPTION_HANDLER_DATA *ExceptionHandlerData) |
CPU Exception Library provides PEI/DXE/SMM CPU common exception handler.
Copyright (c) 2012 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PeiDxeSmmCpuException.c.
| VOID CommonExceptionHandlerWorker | ( | IN EFI_EXCEPTION_TYPE | ExceptionType, |
| IN EFI_SYSTEM_CONTEXT | SystemContext, | ||
| IN EXCEPTION_HANDLER_DATA * | ExceptionHandlerData | ||
| ) |
Internal worker function for common exception handler.
| ExceptionType | Exception type. |
| SystemContext | Pointer to EFI_SYSTEM_CONTEXT. |
| ExceptionHandlerData | Pointer to exception handler data. |
Definition at line 21 of file PeiDxeSmmCpuException.c.
| EFI_STATUS InitializeCpuExceptionHandlersWorker | ( | IN EFI_VECTOR_HANDOFF_INFO *VectorInfo | OPTIONAL, |
| IN OUT EXCEPTION_HANDLER_DATA * | ExceptionHandlerData | ||
| ) |
Internal worker function to initialize exception handler.
| [in] | VectorInfo | Pointer to reserved vector list. |
| [in,out] | ExceptionHandlerData | Pointer to exception handler data. |
| EFI_SUCCESS | CPU Exception Entries have been successfully initialized with default exception handlers. |
| EFI_INVALID_PARAMETER | VectorInfo includes the invalid content if VectorInfo is not NULL. |
| EFI_UNSUPPORTED | This function is not supported. |
Definition at line 251 of file PeiDxeSmmCpuException.c.
| EFI_STATUS RegisterCpuInterruptHandlerWorker | ( | IN EFI_EXCEPTION_TYPE | InterruptType, |
| IN EFI_CPU_INTERRUPT_HANDLER | InterruptHandler, | ||
| IN EXCEPTION_HANDLER_DATA * | ExceptionHandlerData | ||
| ) |
Registers a function to be called from the processor interrupt handler.
| [in] | InterruptType | Defines which interrupt or exception to hook. |
| [in] | 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 |
| [in] | ExceptionHandlerData | Pointer to exception handler data. |
| 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, or this function is not supported. |
Definition at line 307 of file PeiDxeSmmCpuException.c.
| VOID UpdateIdtTable | ( | IN IA32_IDT_GATE_DESCRIPTOR * | IdtTable, |
| IN EXCEPTION_HANDLER_TEMPLATE_MAP * | TemplateMap, | ||
| IN EXCEPTION_HANDLER_DATA * | ExceptionHandlerData | ||
| ) |
Internal worker function to update IDT entries accordling to vector attributes.
| [in] | IdtTable | Pointer to IDT table. |
| [in] | TemplateMap | Pointer to a buffer where the address map is returned. |
| [in] | ExceptionHandlerData | Pointer to exception handler data. |
Definition at line 176 of file PeiDxeSmmCpuException.c.