mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-08-20 05:54:41 +00:00
reloacte interrupt descriptor structure
This commit is contained in:
parent
23702ca4f1
commit
46876dd0b9
3 changed files with 28 additions and 39 deletions
|
|
@ -32,6 +32,34 @@
|
|||
// Structures //
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
typedef struct _SIDT_ENTRY
|
||||
{
|
||||
USHORT IdtLimit;
|
||||
ULONG_PTR IdtBase;
|
||||
} SIDT_ENTRY, *PSIDT_ENTRY;
|
||||
|
||||
typedef struct _KIDT_ENTRY
|
||||
{
|
||||
ULONG LowPart : 16;
|
||||
ULONG SegmentSelector : 16;
|
||||
ULONG Reserved1 : 5;
|
||||
ULONG Reserved2 : 3;
|
||||
ULONG Type : 3;
|
||||
ULONG Size : 1;
|
||||
ULONG Reserved3 : 1;
|
||||
ULONG Dpl : 2;
|
||||
ULONG Present : 1;
|
||||
ULONG HighPart : 16;
|
||||
#if defined _M_AMD64
|
||||
ULONG HighestPart;
|
||||
ULONG Reserved;
|
||||
#endif
|
||||
} KIDT_ENTRY, *PKIDT_ENTRY;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
/**
|
||||
* @brief Trap frame for interrupts
|
||||
*
|
||||
|
|
|
|||
|
|
@ -80,41 +80,6 @@ ExtensionCommandPerformActionsForApicRequests(PDEBUGGER_APIC_REQUEST ApicRequest
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Perform query for IDT entries
|
||||
*
|
||||
* @param IdtQueryRequest
|
||||
*
|
||||
* @return VOID
|
||||
*/
|
||||
#pragma pack(push, 1)
|
||||
|
||||
typedef struct _SIDT_ENTRY
|
||||
{
|
||||
USHORT IdtLimit;
|
||||
ULONG_PTR IdtBase;
|
||||
} SIDT_ENTRY, *PSIDT_ENTRY;
|
||||
|
||||
typedef struct _KIDT_ENTRY
|
||||
{
|
||||
ULONG LowPart : 16;
|
||||
ULONG SegmentSelector : 16;
|
||||
ULONG Reserved1 : 5;
|
||||
ULONG Reserved2 : 3;
|
||||
ULONG Type : 3;
|
||||
ULONG Size : 1;
|
||||
ULONG Reserved3 : 1;
|
||||
ULONG Dpl : 2;
|
||||
ULONG Present : 1;
|
||||
ULONG HighPart : 16;
|
||||
#if defined _M_AMD64
|
||||
ULONG HighestPart;
|
||||
ULONG Reserved;
|
||||
#endif
|
||||
} KIDT_ENTRY, *PKIDT_ENTRY;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
/**
|
||||
* @brief Perform query for IDT entries
|
||||
*
|
||||
|
|
|
|||
|
|
@ -165,10 +165,6 @@ CommandIdt(vector<CommandToken> CommandTokens, string Command)
|
|||
|
||||
RtlZeroMemory(IdtPacket, sizeof(INTERRUPT_DESCRIPTOR_TABLE_ENTRIES_PACKETS));
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
//
|
||||
// Get the IDT buffer
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue