make BOOTWAIT loopcount parameter available for tuning.
authorAdam David <adam@@veda.is>
Wed, 15 Jun 1994 18:15:17 +0000 (18:15 +0000)
committerAdam David <adam@@veda.is>
Wed, 15 Jun 1994 18:15:17 +0000 (18:15 +0000)
This changes nothing unless f.e. -DBOOTWAIT=0 or -DBOOTWAIT=640000 is used

sys/i386/boot/Makefile
sys/i386/boot/io.c

index 4809d9c..d01d81c 100644 (file)
@@ -20,7 +20,7 @@
 # the rights to redistribute these changes.
 #
 #      from: Mach, Revision 2.2        92/04/04  11:33:46  rpd
 # 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:
 #
 
 wd0:
@@ -32,7 +32,10 @@ wd0:
 NOPROG=        noprog
 NOMAN= noman
 
 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}/../..
 
 LIBS= -lc
 INC= -I${.CURDIR}/../..
 
index 6a5a58a..736a348 100644 (file)
@@ -24,7 +24,7 @@
  * the rights to redistribute these changes.
  *
  *     from: Mach, Revision 2.2  92/04/04  11:35:57  rpd
  * 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>
  */
 
 #include <i386/include/pio.h>
@@ -143,7 +143,9 @@ char *buf;
        int     i;
        char *ptr=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) {
                if (ischar())
                        for (;;)
                                switch(*ptr = getchar() & 0xff) {