git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: No more kernel page table switching upon interrupt.
[lunaix-os.git]
/
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 294cb27589d21e909f0037f85efa530ba98974d2..9b48eeac30dfe22c961669270c82accf1373ac66 100644
(file)
--- 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
#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();
void
_init_idt();