diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-12 10:13:21 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-12 10:13:21 +0200 |
| commit | 39713a3736145483dd3310c3605f940ca34f05c3 (patch) | |
| tree | d4dcdf0f3b667a5d706aa4b04501a71facf186bd /src/int/pic.h | |
| parent | 6edeba8fe208fb019aec00fdc72b97407a8078d3 (diff) | |
Refactoring
Diffstat (limited to 'src/int/pic.h')
| -rw-r--r-- | src/int/pic.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/int/pic.h b/src/int/pic.h index db1ccec..19e0f5c 100644 --- a/src/int/pic.h +++ b/src/int/pic.h @@ -1,23 +1,9 @@ #ifndef PIC_H #define PIC_H -#include "utils/types.h" - -#define IDT_INT_GATE 0x8E00 -#define IDT_TRAP_GATE 0xEF00 - -typedef struct IDT_ENTRY { - u16 segment; - u32 offset; - u16 type; -} IDT_ENTRY; - -struct IDT_REGISTER { - u16 limit; - u32 base; -} __attribute__((packed)); - -void pic_enable_interrupt(); -void pic_add_idt_entry(IDT_ENTRY entry,int id); +/** + * Configure + */ +void pic_init(); #endif
\ No newline at end of file |
