x86_64 isr and idt: nvme

This commit is contained in:
Matheus
2023-01-10 01:55:35 -03:00
parent e7467e5ce8
commit 85b65fd118
4 changed files with 5 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ void idt_bspinit(){
idt_setentry(&idt[VECTOR_PS2KBD], asmisr_ps2kbd, 0x28, FLAGS_PRESENT | FLAGS_TYPE_INTERRUPT, 0);
idt_setentry(&idt[VECTOR_NVME], asmisr_nvme, 0x28, FLAGS_PRESENT | FLAGS_TYPE_INTERRUPT, 0);
idt_reload();
}
+1
View File
@@ -30,6 +30,7 @@
#define VECTOR_LAPICNMI 0x21
#define VECTOR_MMUINVAL 0x22
#define VECTOR_PS2MOUSE 0x3F
#define VECTOR_NVME 0x60
#define VECTOR_PS2KBD 0x40
#define VECTOR_TIMER 0x80
+1
View File
@@ -16,5 +16,6 @@ extern void asmisr_timer();
extern void asmisr_simd();
extern void asmisr_nm();
extern void asmisr_gpf();
extern void asmisr_nvme();
#endif
+1
View File
@@ -150,6 +150,7 @@ asmisr_panic:
hlt
jmp .hlt ; NMI stuff
isr asmisr_nvme, nvme_irq, 0x30
except asmisr_pagefault, isr_pagefault, 0xE
except asmisr_gpf, isr_gpf, 0xD
except asmisr_nm, isr_except, 0x7