Move IRQ ack higher in mouse driver
This commit is contained in:
parent
3947bd3e48
commit
ddb222389b
|
@ -31,6 +31,8 @@ pub fn mouse(extra_packet: bool) {
|
||||||
asm!("in al, dx" : "={al}"(data) : "{dx}"(0x60) : : "intel", "volatile");
|
asm!("in al, dx" : "={al}"(data) : "{dx}"(0x60) : : "intel", "volatile");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file.write(&irqs).expect("ps2d: failed to write irq:12");
|
||||||
|
|
||||||
packets[packet_i] = data;
|
packets[packet_i] = data;
|
||||||
packet_i += 1;
|
packet_i += 1;
|
||||||
|
|
||||||
|
@ -72,8 +74,6 @@ pub fn mouse(extra_packet: bool) {
|
||||||
packets = [0; 4];
|
packets = [0; 4];
|
||||||
packet_i = 0;
|
packet_i = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
file.write(&irqs).expect("ps2d: failed to write irq:12");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue