mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
21 lines
383 B
C
21 lines
383 B
C
#ifndef TAILIX_KERNEL_INCLUDED_IDT
|
|
#define TAILIX_KERNEL_INCLUDED_IDT 1
|
|
|
|
struct IdtPointer {
|
|
unsigned short limit;
|
|
unsigned int base;
|
|
}
|
|
__attribute__((packed));
|
|
|
|
struct IdtEntry {
|
|
unsigned short base_lo;
|
|
unsigned short sel;
|
|
unsigned char always0;
|
|
unsigned char flags;
|
|
unsigned short base_hi;
|
|
}
|
|
__attribute__((packed));
|
|
|
|
void idt_initialize();
|
|
|
|
#endif
|