TianoCore EDK2 master
Loading...
Searching...
No Matches
IntHandlerFuncs.c File Reference
#include <PeCoffExtraActionLib.h>

Go to the source code of this file.

Functions

BOOLEAN CheckDebugAgentHandler (IN IA32_DESCRIPTOR *IdtDescriptor, IN UINTN InterruptType)
 
VOID SaveAndUpdateIdtEntry1 (IN IA32_DESCRIPTOR *IdtDescriptor, OUT IA32_IDT_GATE_DESCRIPTOR *SavedIdtEntry)
 
VOID RestoreIdtEntry1 (IN IA32_DESCRIPTOR *IdtDescriptor, IN IA32_IDT_GATE_DESCRIPTOR *RestoredIdtEntry)
 

Detailed Description

Ia32 arch functions to access IDT vector.

Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file IntHandlerFuncs.c.

Function Documentation

◆ CheckDebugAgentHandler()

BOOLEAN CheckDebugAgentHandler ( IN IA32_DESCRIPTOR *  IdtDescriptor,
IN UINTN  InterruptType 
)

Read IDT entry to check if IDT entries are setup by Debug Agent.

Parameters
[in]IdtDescriptorPointer to IDT Descriptor.
[in]InterruptTypeInterrupt type.
Return values
TRUEIDT entries were setup by Debug Agent.
FALSEIDT entries were not setup by Debug Agent.

Definition at line 22 of file IntHandlerFuncs.c.

◆ RestoreIdtEntry1()

VOID RestoreIdtEntry1 ( IN IA32_DESCRIPTOR *  IdtDescriptor,
IN IA32_IDT_GATE_DESCRIPTOR *  RestoredIdtEntry 
)

Restore IDT entry for INT1.

Parameters
[in]IdtDescriptorPointer to IDT Descriptor.
[in]RestoredIdtEntryIDT entry to be restored.

Definition at line 84 of file IntHandlerFuncs.c.

◆ SaveAndUpdateIdtEntry1()

VOID SaveAndUpdateIdtEntry1 ( IN IA32_DESCRIPTOR *  IdtDescriptor,
OUT IA32_IDT_GATE_DESCRIPTOR *  SavedIdtEntry 
)

Save IDT entry for INT1 and update it.

Parameters
[in]IdtDescriptorPointer to IDT Descriptor.
[out]SavedIdtEntryOriginal IDT entry returned.

Definition at line 52 of file IntHandlerFuncs.c.