Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/ofwboot add a "-T" option to disable th...



details:   https://anonhg.NetBSD.org/src/rev/480f600f56e2
branches:  trunk
changeset: 758519:480f600f56e2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 06 21:33:42 2010 +0000

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

diffstat:

 sys/arch/sparc/stand/ofwboot/boot.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 9fa414e66823 -r 480f600f56e2 sys/arch/sparc/stand/ofwboot/boot.c
--- a/sys/arch/sparc/stand/ofwboot/boot.c       Sat Nov 06 21:32:49 2010 +0000
+++ b/sys/arch/sparc/stand/ofwboot/boot.c       Sat Nov 06 21:33:42 2010 +0000
@@ -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;
                }



Home | Main Index | Thread Index | Old Index