Use an enum to specify what ist to use

This commit is contained in:
Alex
2023-04-11 11:28:35 +03:00
parent 78f4bdd6a8
commit 046c693a52
2 changed files with 271 additions and 259 deletions

View File

@ -39,6 +39,17 @@ namespace InterruptDescriptorTable
RING3 = 0b11,
} InterruptRingType;
typedef enum _InterruptStackTableType
{
IST0 = 0b0,
IST1 = 0b1,
IST2 = 0b10,
IST3 = 0b11,
IST4 = 0b100,
IST5 = 0b101,
IST6 = 0b110,
} InterruptStackTableType;
typedef struct _InterruptDescriptorTableEntry
{
uint64_t BaseLow : 16;
@ -61,7 +72,7 @@ namespace InterruptDescriptorTable
void SetEntry(uint8_t Index,
void (*Base)(),
uint8_t InterruptStackTable,
InterruptStackTableType InterruptStackTable,
InterruptGateType Gate,
InterruptRingType Ring,
bool Present,