Move declaration of IDTR to header
This commit is contained in:
parent
6a6be3292d
commit
78fe37ddb3
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user