From ab69a596a336d9874555672a154c4f48e0ed1020 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 2 Sep 2024 00:03:03 +0200 Subject: [ IMP ] Reserve system call interrupt for user code only. [ FIX ] Fix mm_update_page function, which pde index instead of pte index. [ IMP ] New .drawio files. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm') 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 -- cgit v1.2.3