From 43ae417266c3127bbae35527c95c26e01ed50bd9 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 29 Mar 2024 19:16:19 +0100 Subject: Kernel: See below. - Add HPET header. - Add note for ApplicationRef. - Update PowerPC and x86 Stackframes. - Add #UD handler inside interrupt descriptor in x86. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalInterruptAPI.asm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Private/HALKit/AMD64/HalInterruptAPI.asm') diff --git a/Private/HALKit/AMD64/HalInterruptAPI.asm b/Private/HALKit/AMD64/HalInterruptAPI.asm index 0abf463d..1a3ca796 100644 --- a/Private/HALKit/AMD64/HalInterruptAPI.asm +++ b/Private/HALKit/AMD64/HalInterruptAPI.asm @@ -40,6 +40,7 @@ extern _hal_handle_mouse extern idt_handle_gpf extern idt_handle_pf extern ke_io_write +extern idt_handle_ud section .text @@ -51,7 +52,21 @@ IntNormal 2 IntNormal 3 IntNormal 4 IntNormal 5 -IntNormal 6 + +;; Invalid opcode interrupt +__HCR_INT_6: + cli + + push rax + + mov rcx, rsp + call idt_handle_ud + + pop rax + + sti + iretq + IntNormal 7 IntExp 8 IntNormal 9 -- cgit v1.2.3