make BOOTWAIT loopcount parameter available for tuning.

This changes nothing unless f.e. -DBOOTWAIT=0 or -DBOOTWAIT=640000 is used
This commit is contained in:
Adam David 1994-06-15 18:15:17 +00:00
parent 704d63e64f
commit f675355835
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1726
4 changed files with 18 additions and 8 deletions

View File

@ -20,7 +20,7 @@
# the rights to redistribute these changes.
#
# from: Mach, Revision 2.2 92/04/04 11:33:46 rpd
# $Id: Makefile,v 1.6 1994/05/30 05:23:46 ache Exp $
# $Id: Makefile,v 1.7 1994/06/02 16:50:56 jkh Exp $
#
wd0:
@ -32,7 +32,10 @@ wd0:
NOPROG= noprog
NOMAN= noman
CFLAGS = -O2 -DDO_BAD144 -I${.CURDIR}
# tunable loopcount parameter, waiting for keypress
BOOTWAIT=240000
CFLAGS = -O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -I${.CURDIR}
LIBS= -lc
INC= -I${.CURDIR}/../..

View File

@ -20,7 +20,7 @@
# the rights to redistribute these changes.
#
# from: Mach, Revision 2.2 92/04/04 11:33:46 rpd
# $Id: Makefile,v 1.6 1994/05/30 05:23:46 ache Exp $
# $Id: Makefile,v 1.7 1994/06/02 16:50:56 jkh Exp $
#
wd0:
@ -32,7 +32,10 @@ wd0:
NOPROG= noprog
NOMAN= noman
CFLAGS = -O2 -DDO_BAD144 -I${.CURDIR}
# tunable loopcount parameter, waiting for keypress
BOOTWAIT=240000
CFLAGS = -O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -I${.CURDIR}
LIBS= -lc
INC= -I${.CURDIR}/../..

View File

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:35:57 rpd
* $Id$
* $Id: io.c,v 1.3 1993/10/16 19:11:36 rgrimes Exp $
*/
#include <i386/include/pio.h>
@ -143,7 +143,9 @@ char *buf;
int i;
char *ptr=buf;
for (i = 240000; i>0; i--)
#if BOOTWAIT
for (i = BOOTWAIT; i>0; i--)
#endif
if (ischar())
for (;;)
switch(*ptr = getchar() & 0xff) {

View File

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:35:57 rpd
* $Id$
* $Id: io.c,v 1.3 1993/10/16 19:11:36 rgrimes Exp $
*/
#include <i386/include/pio.h>
@ -143,7 +143,9 @@ char *buf;
int i;
char *ptr=buf;
for (i = 240000; i>0; i--)
#if BOOTWAIT
for (i = BOOTWAIT; i>0; i--)
#endif
if (ischar())
for (;;)
switch(*ptr = getchar() & 0xff) {