summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
diff options
context:
space:
mode:
Diffstat (limited to 'dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm')
-rw-r--r--dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm17
1 files changed, 16 insertions, 1 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
index 2eae172a..5fe8b1aa 100644
--- a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
+++ b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
@@ -37,6 +37,7 @@ extern idt_handle_gpf
extern idt_handle_pf
extern ke_io_write
extern idt_handle_ud
+extern idt_handle_generic
section .text
@@ -64,7 +65,21 @@ __ZKA_INT_6:
iretq
IntNormal 7
-IntExp 8
+
+;; Invalid opcode interrupt
+__ZKA_INT_8:
+ cli
+
+ push rax
+
+ mov rcx, rsp
+ call idt_handle_generic
+
+ pop rax
+
+ sti
+ iretq
+
IntNormal 9
IntExp 10
IntExp 11