ref: 15afb9d00b50c5d362ffcb387d7e6e4054192eff
parent: dbb0f46e583d54bdd63ace2d1a8e74e8a8b89a84
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Sep 28 15:02:25 EDT 2014
apply ps2mouse corruption fix to omap the omap ps2mouse driver is currently unused, but in case of being finished at some point, apply the fix from the pc driver.
--- a/sys/src/9/omap/mouse.c
+++ b/sys/src/9/omap/mouse.c
@@ -107,7 +107,7 @@
}
msg[nb] = c;
- if(++nb == packetsize){
+ if(++nb >= packetsize){
nb = 0;
if(msg[0] & 0x10)
msg[1] |= 0xFF00;
@@ -142,13 +142,13 @@
if(mousetype == MousePS2)
return;
-// i8042auxenable(ps2mouseputc);
-// i8042auxcmd(0xEA); // TODO
-// i8042auxcmd(0xF4);
-
mousetype = MousePS2;
packetsize = 3;
mousehwaccel = 1;
+
+// i8042auxenable(ps2mouseputc);
+// i8042auxcmd(0xEA); // TODO
+// i8042auxcmd(0xF4);
}
/*