hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/boot/pic.zig
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-10 10:31:01 +0200
committerhachem <im@hachem.wtf>2026-10-10 10:31:01 +0200
commitcc8768d33a6ff6cc64306d01679a10c3a1847736 (patch)
tree144b2f68c6e6ed482b99e45e981854bfd5db59e6 /boot/pic.zig
parent89abe49aad1ac7416844f3c5e95655ad2614392b (diff)
chore: small refactor
Diffstat (limited to 'boot/pic.zig')
-rw-r--r--boot/pic.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/pic.zig b/boot/pic.zig
index 365fa2f..b2326e4 100644
--- a/boot/pic.zig
+++ b/boot/pic.zig
@@ -17,6 +17,6 @@ pub const SLAVE_OFFSET: u8 = 0x28; // irq8..15 -> vectors 0x28..0x2f
// tell the pic were done. the slaves interrupts also need the master eoid
// since they arrive via the cascade
pub fn eoi(irq: u4) void {
- if (irq >= 8) port.outb(SLAVE_CMD, EOI);
+ if (irq >= 8) port.outb(SLAVE_CMD, EOI); // irq 8..15 live on the slave pic
port.outb(MASTER_CMD, EOI);
}