TianoCore EDK2 master
|
#include "PlDebugSupport.h"
Go to the source code of this file.
Functions | |
UINTN | GetInterruptHandleFromIdt (IN IA32_IDT_GATE_DESCRIPTOR *IdtGateDecriptor) |
VOID | CreateEntryStub (IN EFI_EXCEPTION_TYPE ExceptionType, OUT VOID **Stub) |
EFI_STATUS | ManageIdtEntryTable (CALLBACK_FUNC NewCallback, EFI_EXCEPTION_TYPE ExceptionType) |
Variables | |
IA32_IDT_GATE_DESCRIPTOR | NullDesc |
X64 specific functions to support Debug Support protocol.
Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PlDebugSupportX64.c.
VOID CreateEntryStub | ( | IN EFI_EXCEPTION_TYPE | ExceptionType, |
OUT VOID ** | Stub | ||
) |
Allocate pool for a new IDT entry stub.
Copy the generic stub into the new buffer and fixup the vector number and jump target address.
ExceptionType | This is the exception type that the new stub will be created for. |
Stub | On successful exit, *Stub contains the newly allocated entry stub. |
Definition at line 54 of file PlDebugSupportX64.c.
Get Interrupt Handle from IDT Gate Descriptor.
IdtGateDecriptor | IDT Gate Descriptor. |
Definition at line 24 of file PlDebugSupportX64.c.
EFI_STATUS ManageIdtEntryTable | ( | CALLBACK_FUNC | NewCallback, |
EFI_EXCEPTION_TYPE | ExceptionType | ||
) |
This is the main worker function that manages the state of the interrupt handlers. It both installs and uninstalls interrupt handlers based on the value of NewCallback. If NewCallback is NULL, then uninstall is indicated. If NewCallback is non-NULL, then install is indicated.
NewCallback | If non-NULL, NewCallback specifies the new handler to register. If NULL, specifies that the previously registered handler should be uninstalled. |
ExceptionType | Indicates which entry to manage. |
EFI_SUCCESS | Process is ok. |
EFI_INVALID_PARAMETER | Requested uninstalling a handler from a vector that has no handler registered for it |
EFI_ALREADY_STARTED | Requested install to a vector that already has a handler registered. |
others | Possible return values are passed through from UnHookEntry and HookEntry. |
Definition at line 106 of file PlDebugSupportX64.c.
IA32_IDT_GATE_DESCRIPTOR NullDesc |
Definition at line 11 of file PlDebugSupportX64.c.