Module Name:    src
Committed By:   mrg
Date:           Sat Nov  6 21:33:42 UTC 2010

Modified Files:
        src/sys/arch/sparc/stand/ofwboot: boot.c

Log Message:
add a "-T" option to disable the twiddler, which can help booting
with serial output slowness i've seen.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sparc/stand/ofwboot/boot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/stand/ofwboot/boot.c
diff -u src/sys/arch/sparc/stand/ofwboot/boot.c:1.25 src/sys/arch/sparc/stand/ofwboot/boot.c:1.26
--- src/sys/arch/sparc/stand/ofwboot/boot.c:1.25	Wed Aug 25 20:16:49 2010
+++ src/sys/arch/sparc/stand/ofwboot/boot.c	Sat Nov  6 21:33:42 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot.c,v 1.25 2010/08/25 20:16:49 christos Exp $	*/
+/*	$NetBSD: boot.c,v 1.26 2010/11/06 21:33:42 mrg Exp $	*/
 
 /*
  * Copyright (c) 1997, 1999 Eduardo E. Horvath.  All rights reserved.
@@ -95,6 +95,7 @@
 
 int debug  = 0;
 int compatmode = 0;
+extern char twiddle_toggle;
 
 #if 0
 static void
@@ -190,6 +191,7 @@
 		kernel[end2 - start2] = '\0';
 	}
 
+	twiddle_toggle = 1;
 	strcpy(options, ap);
 	while (*ap != '\0' && *ap != ' ' && *ap != '\t' && *ap != '\n') {
 		BOOT_FLAG(*ap, v);
@@ -200,6 +202,9 @@
 		case 'C':
 			compatmode = 1;
 			break;
+		case 'T':
+			twiddle_toggle = 1 - twiddle_toggle;
+			break;
 		default:
 			break;
 		}

Reply via email to