Move IRQ ack higher in mouse driver

This commit is contained in:
Jeremy Soller
2016-10-14 12:42:02 -06:00
parent 815c471aed
commit d494576d59
+2 -2
View File
@@ -31,6 +31,8 @@ pub fn mouse(extra_packet: bool) {
asm!("in al, dx" : "={al}"(data) : "{dx}"(0x60) : : "intel", "volatile");
}
file.write(&irqs).expect("ps2d: failed to write irq:12");
packets[packet_i] = data;
packet_i += 1;
@@ -72,8 +74,6 @@ pub fn mouse(extra_packet: bool) {
packets = [0; 4];
packet_i = 0;
}
file.write(&irqs).expect("ps2d: failed to write irq:12");
}
}
}