Subject: delay before cpu_reset()
To: None <tech-kern@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 10/09/1998 18:17:04
Hi,
does some object to this change ?

Index: machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.325
diff -u -r1.325 machdep.c
--- machdep.c	1998/10/03 21:38:49	1.325
+++ machdep.c	1998/10/09 16:10:17
@@ -1356,6 +1356,8 @@
 	}
 
 	printf("rebooting...\n");
+	/* Give the user some time to read messages */
+	delay(2000000);
 	cpu_reset();
 	for(;;) ;
 	/*NOTREACHED*/


This gives the time to the user to see the 'syncing disks' and 'rebooting'
messages before the screen is cleared. Especially this allows the user to
see the error message in case there is an I/O error while the buffers are
flushed.

If no one object I'll commit this on monday.
--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--