diff options
author | adam <adam@FreeBSD.org> | 1994-06-15 18:15:17 +0000 |
---|---|---|
committer | adam <adam@FreeBSD.org> | 1994-06-15 18:15:17 +0000 |
commit | 7fb934835d6128e3140d4fdc68173a36f3891166 (patch) | |
tree | 4c6de74f010dcf0aea21f4d51f806f4281495e03 /sys | |
parent | 9de44e8c43ea4ee0d270d24de0d68fd3896f591d (diff) | |
download | FreeBSD-src-7fb934835d6128e3140d4fdc68173a36f3891166.zip FreeBSD-src-7fb934835d6128e3140d4fdc68173a36f3891166.tar.gz |
make BOOTWAIT loopcount parameter available for tuning.
This changes nothing unless f.e. -DBOOTWAIT=0 or -DBOOTWAIT=640000 is used
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/boot/Makefile | 7 | ||||
-rw-r--r-- | sys/i386/boot/biosboot/Makefile | 7 | ||||
-rw-r--r-- | sys/i386/boot/biosboot/io.c | 6 | ||||
-rw-r--r-- | sys/i386/boot/io.c | 6 |
4 files changed, 18 insertions, 8 deletions
diff --git a/sys/i386/boot/Makefile b/sys/i386/boot/Makefile index 4809d9c..d01d81c 100644 --- a/sys/i386/boot/Makefile +++ b/sys/i386/boot/Makefile @@ -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}/../.. diff --git a/sys/i386/boot/biosboot/Makefile b/sys/i386/boot/biosboot/Makefile index 4809d9c..d01d81c 100644 --- a/sys/i386/boot/biosboot/Makefile +++ b/sys/i386/boot/biosboot/Makefile @@ -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}/../.. diff --git a/sys/i386/boot/biosboot/io.c b/sys/i386/boot/biosboot/io.c index 6a5a58a..736a348 100644 --- a/sys/i386/boot/biosboot/io.c +++ b/sys/i386/boot/biosboot/io.c @@ -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) { diff --git a/sys/i386/boot/io.c b/sys/i386/boot/io.c index 6a5a58a..736a348 100644 --- a/sys/i386/boot/io.c +++ b/sys/i386/boot/io.c @@ -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) { |