patch-1.3.35 linux/drivers/char/psaux.c
Next file: linux/drivers/char/random.c
Previous file: linux/drivers/char/msbusmouse.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sat Oct 14 10:58:47 1995
- Orig file:
v1.3.34/linux/drivers/char/psaux.c
- Orig date:
Tue Oct 10 18:46:33 1995
diff -u --recursive --new-file v1.3.34/linux/drivers/char/psaux.c linux/drivers/char/psaux.c
@@ -46,6 +46,7 @@
#include <linux/timer.h>
#include <linux/malloc.h>
#include <linux/mouse.h>
+#include <linux/random.h>
#include <asm/io.h>
#include <asm/segment.h>
@@ -221,7 +222,7 @@
if ((inb(AUX_STATUS) & AUX_OBUF_FULL) != AUX_OBUF_FULL)
return;
- queue->buf[head] = inb(AUX_INPUT_PORT);
+ add_mouse_randomness(queue->buf[head] = inb(AUX_INPUT_PORT));
if (head != maxhead) {
head++;
head &= AUX_BUF_SIZE-1;
@@ -244,7 +245,7 @@
int head = queue->head;
int maxhead = (queue->tail-1) & (AUX_BUF_SIZE-1);
- queue->buf[head] = inb(qp_data);
+ add_mouse_randomness(queue->buf[head] = inb(qp_data));
if (head != maxhead) {
head++;
head &= AUX_BUF_SIZE-1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this