summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/HALKit/AMD64/HalInterruptAPI.asm
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-17 21:11:37 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-17 21:13:22 +0100
commit690e1884f1fcc7128d97efaa64f933eb8f811cfd (patch)
treed974ffee0a7a2b8c5a948d65314711f308c1a7a2 /src/kernel/HALKit/AMD64/HalInterruptAPI.asm
parent144ab97968b7efd2eacfb281e4d152bcad859671 (diff)
feat: kernel: stability improvements on the scheduler and AMD64 HAL.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/HALKit/AMD64/HalInterruptAPI.asm')
-rw-r--r--src/kernel/HALKit/AMD64/HalInterruptAPI.asm19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/kernel/HALKit/AMD64/HalInterruptAPI.asm b/src/kernel/HALKit/AMD64/HalInterruptAPI.asm
index c761684e..be8675f8 100644
--- a/src/kernel/HALKit/AMD64/HalInterruptAPI.asm
+++ b/src/kernel/HALKit/AMD64/HalInterruptAPI.asm
@@ -206,7 +206,24 @@ __NE_INT_32:
o64 iret
-IntNormal 33
+global __NE_INT_33
+__NE_INT_33:
+ cli
+
+ push rax
+
+ ; Read scancode from keyboard port to acknowledge
+ in al, 0x60
+
+ ; Send EOI to master PIC
+ mov al, 0x20
+ out 0x20, al
+
+ pop rax
+
+ std
+
+ o64 iret
IntNormal 34
IntNormal 35