Some vague interrupt stuff
This commit is contained in:
parent
f15f5f4fc4
commit
a4d05189ff
3 changed files with 443 additions and 0 deletions
16
include/kernel/interrupt.h
Normal file
16
include/kernel/interrupt.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue