feat: add interrupt-driven PS/2 keyboard input

Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
2026-05-04 12:15:33 +03:00
parent 53b4cff56a
commit 47b6a1eb82
2 changed files with 125 additions and 3 deletions
+26
View File
@@ -89,6 +89,32 @@ long_mode_start:
hlt
jmp 1b
.code64
.global isr_keyboard
.align 16
isr_keyboard:
pushq %rax
pushq %rcx
pushq %rdx
pushq %rsi
pushq %rdi
pushq %r8
pushq %r9
pushq %r10
pushq %r11
cld
call keyboard_handler
popq %r11
popq %r10
popq %r9
popq %r8
popq %rdi
popq %rsi
popq %rdx
popq %rcx
popq %rax
iretq
.section .note.Xen, "a", @note
.align 4
.long 4