X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fkeyb.c;h=a63312e62ece6361af7323b157425cbab84623e6;hp=9a34d8fbdc712e7d4d67235a2355bdbfde2531a4;hb=91253d061647c194cdc8c16c9ae85eccdf942139;hpb=c5698ff9776ac76cd2243525177c35b0d12855e0
diff --git a/src/keyb.c b/src/keyb.c
index 9a34d8f..a63312e 100644
--- a/src/keyb.c
+++ b/src/keyb.c
@@ -15,6 +15,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
+#include
#include "keyb.h"
#include "intr.h"
#include "asmops.h"
@@ -49,6 +50,10 @@ static unsigned char keystate[256];
void kb_init(void)
{
+ buf_ridx = buf_widx = 0;
+ num_pressed = 0;
+ memset(keystate, 0, sizeof keystate);
+
interrupt(IRQ_TO_INTR(KB_IRQ), kbintr);
}