Move declaration of IDTR to header

This commit is contained in:
apio 2022-09-06 11:44:37 +02:00
parent 6a6be3292d
commit 78fe37ddb3
2 changed files with 6 additions and 6 deletions

View File

@ -5,6 +5,12 @@
#define IDT_TA_CallGate 0b10001100
#define IDT_TA_TrapGate 0b10001111
struct IDTR
{
uint16_t limit;
uint64_t offset;
} __attribute__((packed));
namespace IDT
{
void add_handler(short interrupt_number, void* handler, uint8_t type_attr);

View File

@ -14,12 +14,6 @@ struct IDTEntry
uint64_t get_offset();
};
struct IDTR
{
uint16_t limit;
uint64_t offset;
} __attribute__((packed));
static IDTEntry entries[256];
void IDTEntry::set_offset(uint64_t offset)