17 lines
292 B
C
17 lines
292 B
C
|
#ifndef _KERNEL_INTERRUPT
|
||
|
#define _KERNEL_INTERRUPT
|
||
|
|
||
|
struct IDT_entry {
|
||
|
unsigned short int offset_lowerbits;
|
||
|
unsigned short int selector;
|
||
|
unsigned char zero;
|
||
|
unsigned char type_attr;
|
||
|
unsigned short int offset_higherbits;
|
||
|
};
|
||
|
|
||
|
struct IDT_entry IDT[256];
|
||
|
|
||
|
void idt_init(void);
|
||
|
|
||
|
#endif
|