ref: c3facde219bfae33ab099fdedb70aae2f5377f8f
parent: 2c5b8d0b9a37377925e75c1f7030c61e1f1d039f
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);
}
/*
--
⑨