mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
x86_64 isr and idt: nvme
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user