mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-17 16:10:46 +01:00
Corrected off by 2 error in DELAY macro (it was delaying for 2 * value).
From Bruce Evans.
This commit is contained in:
parent
f8851ba62f
commit
237fbcc806
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322
@ -53,7 +53,7 @@
|
|||||||
* aid in bug reports.
|
* aid in bug reports.
|
||||||
* 27 May 93 Guido van Rooij New routine add find_isa_dev
|
* 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
|
* code to manage AT bus
|
||||||
@ -570,12 +570,12 @@ isa_strayintr(d) {
|
|||||||
/*
|
/*
|
||||||
* Wait "n" microseconds.
|
* Wait "n" microseconds.
|
||||||
* Relies on timer 1 counting down from (TIMER_FREQ / hz) at
|
* 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!
|
* 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 standard programming causes the timer to generate a square wave and
|
||||||
* the counter is decremented twice every cycle.)
|
* 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 */
|
#define TIMER_FREQ 1193182 /* XXX - should be elsewhere */
|
||||||
|
|
||||||
extern int hz; /* XXX - should be elsewhere */
|
extern int hz; /* XXX - should be elsewhere */
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
* aid in bug reports.
|
* aid in bug reports.
|
||||||
* 27 May 93 Guido van Rooij New routine add find_isa_dev
|
* 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
|
* code to manage AT bus
|
||||||
@ -570,12 +570,12 @@ isa_strayintr(d) {
|
|||||||
/*
|
/*
|
||||||
* Wait "n" microseconds.
|
* Wait "n" microseconds.
|
||||||
* Relies on timer 1 counting down from (TIMER_FREQ / hz) at
|
* 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!
|
* 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 standard programming causes the timer to generate a square wave and
|
||||||
* the counter is decremented twice every cycle.)
|
* 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 */
|
#define TIMER_FREQ 1193182 /* XXX - should be elsewhere */
|
||||||
|
|
||||||
extern int hz; /* XXX - should be elsewhere */
|
extern int hz; /* XXX - should be elsewhere */
|
||||||
|
Loading…
Reference in New Issue
Block a user