From: Philip Homburg Date: Thu, 10 Nov 2005 15:41:25 +0000 (+0000) Subject: Larger raw keyboard/kbdaux buffer X-Git-Tag: v3.1.2a~503 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=a894f5842f34d03cc01ebe28e689950016a59f87;p=minix.git Larger raw keyboard/kbdaux buffer --- diff --git a/drivers/tty/keyboard.c b/drivers/tty/keyboard.c index dae40932c..0f66f2ad1 100644 --- a/drivers/tty/keyboard.c +++ b/drivers/tty/keyboard.c @@ -59,7 +59,7 @@ int aux_irq_hook_id = -1; #define INS_SCAN 0x52 /* INS for use in CTRL-ALT-INS reboot */ #define DEL_SCAN 0x53 /* DEL for use in CTRL-ALT-DEL reboot */ -#define KBD_BUFSZ 64 /* Buffer size for raw scan codes */ +#define KBD_BUFSZ 1024 /* Buffer size for raw scan codes */ #define KBD_OUT_BUFSZ 16 /* Output buffer to sending data to the * keyboard. */ @@ -471,7 +471,11 @@ message *m_ptr; { /* raw scan codes or aux data */ if (kbdp->avail >= KBD_BUFSZ) + { + printf("kbd_interrupt: %s buffer is full\n", + isaux ? "kbdaux" : "keyboard"); return; /* Buffer is full */ + } o= (kbdp->offset + kbdp->avail) % KBD_BUFSZ; kbdp->buf[o]= scode; kbdp->avail++;