Source-Changes-HG archive

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

[src/trunk]: src/sys g/c RB_DFLTROOT



details:   https://anonhg.NetBSD.org/src/rev/c21f0f05dd2b
branches:  trunk
changeset: 495493:c21f0f05dd2b
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jul 29 20:06:27 2000 +0000

description:
g/c RB_DFLTROOT

I've tried hard to find also various usage() messages and remove the
appropriate flag from there as well, hopefully all occurences are covered.

diffstat:

 sys/arch/arc/arc/machdep.c                |  12 +++---------
 sys/arch/bebox/stand/boot/boot.c          |   4 +---
 sys/arch/hpcmips/hpcmips/machdep.c        |   8 +++-----
 sys/arch/i386/stand/biosboot/main.c       |   4 ++--
 sys/arch/i386/stand/dosboot/main.c        |   4 ++--
 sys/arch/i386/stand/lib/netbsd_opts.c     |   3 +--
 sys/arch/i386/stand/netboot/main.c        |   4 ++--
 sys/arch/mvme68k/stand/libsa/parse_args.c |   3 +--
 sys/arch/newsmips/newsmips/machdep.c      |   8 +++-----
 sys/arch/pc532/stand/boot/boot.c          |   7 ++-----
 sys/arch/pmax/pmax/machdep.c              |   8 +++-----
 sys/arch/prep/stand/boot/boot.c           |   4 +---
 sys/arch/sparc/sparc/autoconf.c           |   6 +-----
 sys/arch/sparc64/sparc64/autoconf.c       |   6 +-----
 sys/arch/x68k/stand/loadbsd/loadbsd.c     |  11 +++--------
 sys/compat/osf1/osf1_cvt.c                |   4 ++--
 sys/sys/reboot.h                          |   4 ++--
 17 files changed, 33 insertions(+), 67 deletions(-)

diffs (truncated from 401 to 300 lines):

diff -r f345e64418fa -r c21f0f05dd2b sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c        Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/arc/arc/machdep.c        Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.41 2000/06/29 08:34:09 mrg Exp $ */
+/*     $NetBSD: machdep.c,v 1.42 2000/07/29 20:06:28 jdolecek Exp $    */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -519,7 +519,7 @@
         * SINGLE and DFLTROOT if this is a ramdisk kernel.
         */
 #ifdef MEMORY_DISK_HOOKS
-       boothowto = RB_SINGLE | RB_DFLTROOT;
+       boothowto = RB_SINGLE;
 #else
        boothowto = RB_SINGLE | RB_ASKNAME;
 #endif /* MEMORY_DISK_HOOKS */
@@ -535,10 +535,6 @@
                                boothowto &= ~RB_SINGLE;
                                break;
 
-                       case 'd': /* use compiled in default root */
-                               boothowto |= RB_DFLTROOT;
-                               break;
-
                        case 'm': /* mini root present in memory */
                                boothowto |= RB_MINIROOT;
                                break;
@@ -628,10 +624,8 @@
         * Check to see if a mini-root was loaded into memory. It resides
         * at the start of the next page just after the end of BSS.
         */
-       if (boothowto & RB_MINIROOT) {
-               boothowto |= RB_DFLTROOT;
+       if (boothowto & RB_MINIROOT)
                kernend += round_page(mfs_initminiroot(kernend));
-       }
 #endif
 
 #ifdef DDB
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/bebox/stand/boot/boot.c
--- a/sys/arch/bebox/stand/boot/boot.c  Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/bebox/stand/boot/boot.c  Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.10 1999/06/28 01:35:11 sakamoto Exp $       */
+/*     $NetBSD: boot.c,v 1.11 2000/07/29 20:06:28 jdolecek Exp $       */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -177,8 +177,6 @@
                                        howto |= RB_HALT;
                                else if (c == 'd')
                                        howto |= RB_KDB;
-                               else if (c == 'r')
-                                       howto |= RB_DFLTROOT;
                                else if (c == 's')
                                        howto |= RB_SINGLE;
                        }
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/hpcmips/hpcmips/machdep.c
--- a/sys/arch/hpcmips/hpcmips/machdep.c        Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/hpcmips/hpcmips/machdep.c        Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.31 2000/07/25 00:11:36 jeffs Exp $       */
+/*     $NetBSD: machdep.c,v 1.32 2000/07/29 20:06:28 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.31 2000/07/25 00:11:36 jeffs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.32 2000/07/29 20:06:28 jdolecek Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 #include "opt_vr41x1.h"
@@ -364,10 +364,8 @@
         * Check to see if a mini-root was loaded into memory. It resides
         * at the start of the next page just after the end of BSS.
         */
-       if (boothowto & RB_MINIROOT) {
-               boothowto |= RB_DFLTROOT;
+       if (boothowto & RB_MINIROOT)
                kernend += round_page(mfs_initminiroot(kernend));
-       }
 #endif
 
 #ifdef DDB
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/i386/stand/biosboot/main.c
--- a/sys/arch/i386/stand/biosboot/main.c       Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/i386/stand/biosboot/main.c       Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.22 2000/05/21 16:33:12 jhawk Exp $  */
+/*     $NetBSD: main.c,v 1.23 2000/07/29 20:06:27 jdolecek Exp $       */
 
 /*
  * Copyright (c) 1996, 1997, 1999
@@ -292,7 +292,7 @@
 {
 
        printf("commands are:\n"
-           "boot [xdNx:][filename] [-adrs]\n"
+           "boot [xdNx:][filename] [-ads]\n"
            "     (ex. \"sd0a:netbsd.old -s\"\n"
            "ls [path]\n"
            "dev xd[N[x]]:\n"
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/i386/stand/dosboot/main.c
--- a/sys/arch/i386/stand/dosboot/main.c        Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/i386/stand/dosboot/main.c        Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.14 2000/03/13 10:51:22 martin Exp $  */
+/*     $NetBSD: main.c,v 1.15 2000/07/29 20:06:28 jdolecek Exp $        */
 
 /*
  * Copyright (c) 1996, 1997
@@ -314,7 +314,7 @@
        char *arg;
 {
        printf("commands are:\n"
-              "boot [xdNx:][filename] [-adrs]\n"
+              "boot [xdNx:][filename] [-ads]\n"
               "     (ex. \"sd0a:netbsd.old -s\"\n"
               "ls [path]\n"
               "mode ufs|dos\n"
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/i386/stand/lib/netbsd_opts.c
--- a/sys/arch/i386/stand/lib/netbsd_opts.c     Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/i386/stand/lib/netbsd_opts.c     Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd_opts.c,v 1.2 1997/03/14 06:55:07 thorpej Exp $  */
+/*     $NetBSD: netbsd_opts.c,v 1.3 2000/07/29 20:06:27 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -49,7 +49,6 @@
 } opttab[] = {
        {'a', RB_ASKNAME},
        {'s', RB_SINGLE},
-       {'r', RB_DFLTROOT},
        {'d', RB_KDB},
 };
 
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/i386/stand/netboot/main.c
--- a/sys/arch/i386/stand/netboot/main.c        Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/i386/stand/netboot/main.c        Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.5 1997/09/17 18:52:41 drochner Exp $         */
+/*     $NetBSD: main.c,v 1.6 2000/07/29 20:06:28 jdolecek Exp $         */
 
 /*
  * Copyright (c) 1996
@@ -137,7 +137,7 @@
        char *arg;
 {
        printf("commands are:\n"
-              "boot [filename] [-adrs]\n"
+              "boot [filename] [-ads]\n"
               "     (ex. \"netbsd.old -s\"\n"
               "help|?\n"
               "quit\n");
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/mvme68k/stand/libsa/parse_args.c
--- a/sys/arch/mvme68k/stand/libsa/parse_args.c Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/mvme68k/stand/libsa/parse_args.c Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse_args.c,v 1.5 2000/07/24 09:25:53 scw Exp $       */
+/*     $NetBSD: parse_args.c,v 1.6 2000/07/29 20:06:30 jdolecek Exp $  */
 
 /*-
  * Copyright (c) 1995 Theo de Raadt
@@ -51,7 +51,6 @@
        { 'y', RB_NOSYM },
        { 'd', RB_KDB },
        { 'm', RB_MINIROOT },
-       { 'r', RB_DFLTROOT },
        { 's', RB_SINGLE },
 };
 
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/newsmips/newsmips/machdep.c
--- a/sys/arch/newsmips/newsmips/machdep.c      Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/newsmips/newsmips/machdep.c      Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.44 2000/07/14 18:35:40 jeffs Exp $       */
+/*     $NetBSD: machdep.c,v 1.45 2000/07/29 20:06:28 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2000/07/14 18:35:40 jeffs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2000/07/29 20:06:28 jdolecek Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -286,10 +286,8 @@
         * Check to see if a mini-root was loaded into memory. It resides
         * at the start of the next page just after the end of BSS.
         */
-       if (boothowto & RB_MINIROOT) {
-               boothowto |= RB_DFLTROOT;
+       if (boothowto & RB_MINIROOT)
                kernend += round_page(mfs_initminiroot(kernend));
-       }
 #endif
 
        /*
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/pc532/stand/boot/boot.c
--- a/sys/arch/pc532/stand/boot/boot.c  Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/pc532/stand/boot/boot.c  Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.1 1997/05/17 13:56:01 matthias Exp $        */
+/*     $NetBSD: boot.c,v 1.2 2000/07/29 20:06:29 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -107,7 +107,7 @@
 {
        char c, *ptr = line;
 
-       printf("Boot: [[[%s%d%c:]%s][-abdrs]] :- ",
+       printf("Boot: [[[%s%d%c:]%s][-abds]] :- ",
            devsw[bdev].dv_name, bctlr + (8 * badapt), 'a' + bpart, name);
 
        if (tgets(line)) {
@@ -128,9 +128,6 @@
                                        case 'd':
                                                *howto |= RB_KDB;
                                                continue;
-                                       case 'r':
-                                               *howto |= RB_DFLTROOT;
-                                               continue;
                                        case 's':
                                                *howto |= RB_SINGLE;
                                                continue;
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.177 2000/07/14 18:35:40 jeffs Exp $      */
+/*     $NetBSD: machdep.c,v 1.178 2000/07/29 20:06:29 jdolecek Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.177 2000/07/14 18:35:40 jeffs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.178 2000/07/29 20:06:29 jdolecek Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -290,10 +290,8 @@
         * Check to see if a mini-root was loaded into memory. It resides
         * at the start of the next page just after the end of BSS.
         */
-       if (boothowto & RB_MINIROOT) {
-               boothowto |= RB_DFLTROOT;
+       if (boothowto & RB_MINIROOT)
                kernend += round_page(mfs_initminiroot(kernend));
-       }
 #endif
 
 #ifdef DDB
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/prep/stand/boot/boot.c
--- a/sys/arch/prep/stand/boot/boot.c   Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/prep/stand/boot/boot.c   Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.1 2000/02/29 15:21:48 nonaka Exp $  */
+/*     $NetBSD: boot.c,v 1.2 2000/07/29 20:06:29 jdolecek Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -185,8 +185,6 @@
                                        howto |= RB_HALT;
                                else if (c == 'd')
                                        howto |= RB_KDB;
-                               else if (c == 'r')
-                                       howto |= RB_DFLTROOT;
                                else if (c == 's')
                                        howto |= RB_SINGLE;
                        }
diff -r f345e64418fa -r c21f0f05dd2b sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Sat Jul 29 19:15:40 2000 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Sat Jul 29 20:06:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.140 2000/06/29 07:40:09 mrg Exp $ */
+/*     $NetBSD: autoconf.c,v 1.141 2000/07/29 20:06:29 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -414,10 +414,6 @@
                        boothowto |= RB_ASKNAME;
                        break;
 
-               case 'b':
-                       boothowto |= RB_DFLTROOT;
-                       break;
-



Home | Main Index | Thread Index | Old Index