From 237fbcc80618a0c4833508eaedf2f732c9f949e1 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Tue, 24 Aug 1993 01:24:43 +0000 Subject: [PATCH] Corrected off by 2 error in DELAY macro (it was delaying for 2 * value). From Bruce Evans. --- sys/amd64/isa/isa.c | 6 +++--- sys/i386/isa/isa.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c index 4b69bbf6175d..38b745dde9eb 100644 --- a/sys/amd64/isa/isa.c +++ b/sys/amd64/isa/isa.c @@ -53,7 +53,7 @@ * aid in bug reports. * 27 May 93 Guido van Rooij New routine add find_isa_dev */ -static char rcsid[] = "$Header: /home/cvs/386BSD/src/sys.386bsd/i386/isa/isa.c,v 1.1.1.1 1993/06/12 14:58:01 rgrimes Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/isa.c,v 1.2 1993/06/18 22:18:57 rgrimes Exp $"; /* * code to manage AT bus @@ -570,12 +570,12 @@ isa_strayintr(d) { /* * Wait "n" microseconds. * Relies on timer 1 counting down from (TIMER_FREQ / hz) at - * (2 * TIMER_FREQ) Hz. + * (1 * TIMER_FREQ) Hz. * Note: timer had better have been programmed before this is first used! * (The standard programming causes the timer to generate a square wave and * the counter is decremented twice every cycle.) */ -#define CF (2 * TIMER_FREQ) +#define CF (1 * TIMER_FREQ) #define TIMER_FREQ 1193182 /* XXX - should be elsewhere */ extern int hz; /* XXX - should be elsewhere */ diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c index 4b69bbf6175d..38b745dde9eb 100644 --- a/sys/i386/isa/isa.c +++ b/sys/i386/isa/isa.c @@ -53,7 +53,7 @@ * aid in bug reports. * 27 May 93 Guido van Rooij New routine add find_isa_dev */ -static char rcsid[] = "$Header: /home/cvs/386BSD/src/sys.386bsd/i386/isa/isa.c,v 1.1.1.1 1993/06/12 14:58:01 rgrimes Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/isa.c,v 1.2 1993/06/18 22:18:57 rgrimes Exp $"; /* * code to manage AT bus @@ -570,12 +570,12 @@ isa_strayintr(d) { /* * Wait "n" microseconds. * Relies on timer 1 counting down from (TIMER_FREQ / hz) at - * (2 * TIMER_FREQ) Hz. + * (1 * TIMER_FREQ) Hz. * Note: timer had better have been programmed before this is first used! * (The standard programming causes the timer to generate a square wave and * the counter is decremented twice every cycle.) */ -#define CF (2 * TIMER_FREQ) +#define CF (1 * TIMER_FREQ) #define TIMER_FREQ 1193182 /* XXX - should be elsewhere */ extern int hz; /* XXX - should be elsewhere */