diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-29 19:16:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-29 19:16:19 +0100 |
| commit | 43ae417266c3127bbae35527c95c26e01ed50bd9 (patch) | |
| tree | efbbaa92ab7e11a69bd295cba7da65f487572836 /Private/HALKit/AMD64/HalInterruptAPI.asm | |
| parent | 7e5be1572c043484293ee0cdd840dd41f54e87ee (diff) | |
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 <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/HALKit/AMD64/HalInterruptAPI.asm')
| -rw-r--r-- | Private/HALKit/AMD64/HalInterruptAPI.asm | 17 |
1 files changed, 16 insertions, 1 deletions
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 |
