reloacte interrupt descriptor structure

This commit is contained in:
SinaKarvandi 2024-12-30 04:43:43 +01:00
parent 23702ca4f1
commit 46876dd0b9
3 changed files with 28 additions and 39 deletions

View file

@ -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
*

View file

@ -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
*

View file

@ -165,10 +165,6 @@ CommandIdt(vector<CommandToken> CommandTokens, string Command)
RtlZeroMemory(IdtPacket, sizeof(INTERRUPT_DESCRIPTOR_TABLE_ENTRIES_PACKETS));
/////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
//
// Get the IDT buffer
//