From af8d5aa4538ac71f11a5418ef94ae478868a0484 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 31 Jul 2026 02:28:10 +0200 Subject: interrupts: IDT, PIC remap, PIT timer, PS/2 keyboard IRQ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - IDT with 256 entries, loaded via lidt (CS read from current context) - PIC 8259A remapped to vectors 32-47, timer+keyboard IRQs unmasked - PIT channel 0 at ~100 Hz (mode 2, rate generator) - PS/2 keyboard IRQ (IRQ1 → vector 33): reads port 0x60, pushes byte to lock-free SPSC ring buffer - Timer IRQ (IRQ0 → vector 32): sends EOI, increments tick counter - ps2::poll_key() now reads from ring buffer with cli/sti+hlt for race-free sleep (instead of busy-polling the data port) - build.rs: use idiomatic Result<_, Box> return type - tools/qemu.sh: fix SC2207 shellcheck warning --- tools/qemu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/qemu.sh b/tools/qemu.sh index 428954f..b75bed4 100755 --- a/tools/qemu.sh +++ b/tools/qemu.sh @@ -81,7 +81,7 @@ QEMU_CMD=( [ -n "$GUI_FLAG" ] && QEMU_CMD+=("$GUI_FLAG") if [ -n "$DEBUG_FLAG" ]; then # Split the flag string safely into words - read -ra dbg <<< "$DEBUG_FLAG" + read -ra dbg <<<"$DEBUG_FLAG" QEMU_CMD+=("${dbg[@]}") fi -- cgit v1.2.3