X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0067bc210e621ccda286092d081a7890d65e1c18..86a9cfeadbbe180abf6c8bd8c64c86957fdacfeb:/lunaix-os/includes/arch/x86/idt.h diff --git a/lunaix-os/includes/arch/x86/idt.h b/lunaix-os/includes/arch/x86/idt.h index 294cb27..9b48eea 100644 --- a/lunaix-os/includes/arch/x86/idt.h +++ b/lunaix-os/includes/arch/x86/idt.h @@ -1,6 +1,8 @@ #ifndef __LUNAIX_IDT_H #define __LUNAIX_IDT_H -#define IDT_ATTR(dpl) ((0x70 << 5) | (dpl & 3) << 13 | 1 << 15) +#define IDT_TRAP 0x78 +#define IDT_INTERRUPT 0x70 +#define IDT_ATTR(dpl, type) (((type) << 5) | ((dpl & 3) << 13) | (1 << 15)) void _init_idt();