From 200158596a418d3eb49c51d8f9b2314c775f2bda Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 21 Feb 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-02-21 --- pc/kbd.c | 13 ++++--------- port/devdk.c | 4 +++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pc/kbd.c b/pc/kbd.c index c9f802558dea445895bf2f02621ba759d801f0ec..b33f7dae14121321992b09759df7a54329369d94 100644 --- a/pc/kbd.c +++ b/pc/kbd.c @@ -296,8 +296,8 @@ middle(int newval) /* * keyboard interrupt */ -int -kbdintr0(void) +void +kbdintr(Ureg *ur) { int s, c, i, nk, nc; static int esc1, esc2; @@ -309,6 +309,8 @@ kbdintr0(void) static uchar kc[5]; int keyup; + USED(ur); + /* * get status */ @@ -448,10 +450,3 @@ dochar: kbdputc(&kbdq, c); return 0; } - -void -kbdintr(Ureg *ur) -{ - while(kbdintr0() == 0) - ; -} diff --git a/port/devdk.c b/port/devdk.c index 96c9e67df6f9cd2d070f07301e09a907ab60dcb4..f9d8358e754a06b7523b9adaaf3f6e982cf5a38c 100644 --- a/port/devdk.c +++ b/port/devdk.c @@ -1175,6 +1175,7 @@ dklisten(Chan *c) int n, lineno, ts, window; int from; Chan *dc; + static int dts; dp = &dk[c->dev]; from = STREAMID(c->qid.path); @@ -1256,7 +1257,8 @@ dklisten(Chan *c) * this could be a duplicate request */ if(ts == lp->timestamp){ - print("dklisten: repeat timestamp %d\n", lineno); + if((dts++ % 1000) == 0) + print("dklisten: repeat timestamp %d\n", lineno); if(lp->state != Lconnected) dkanswer(c, lineno, DKbusy); continue;