commit 1744e5d30d64b2783b0bed99d20ed41e75b8f4d4
parent f36a1b337545b233e93a0a0788995ae1169645bc
Author: erai <erai@omiltem.net>
Date: Wed, 1 May 2024 04:12:28 -0400
clear interrupts on ahci port
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel.c b/kernel.c
@@ -260,7 +260,6 @@ _isr(r: *regs) {
tick();
outb(IO_PIC1, 0x20);
} else {
- kputd(r.trap);
if (r.trap == 33) {
isr_realtek();
} else if (r.trap == 34) {
@@ -1587,8 +1586,6 @@ isr_ahci() {
var ahci_port: *ahci_port;
var i: int;
- kputc('a');
-
global = g();
ahci_port = global.ahci_port;
@@ -1597,6 +1594,8 @@ isr_ahci() {
break;
}
+ _w32(&ahci_port.port[0x10], -1);
+
ahci_port = ahci_port.next;
}
}