Source-Changes-HG archive

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

[src/trunk]: src/sys Move the MI printing of `copyright' to the MD cpu_startu...



details:   https://anonhg.NetBSD.org/src/rev/fab37f80afe4
branches:  trunk
changeset: 580483:fab37f80afe4
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Apr 25 15:02:02 2005 +0000

description:
Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.

diffstat:

 sys/arch/acorn26/acorn26/machdep.c           |  6 +++---
 sys/arch/algor/algor/machdep.c               |  6 +++---
 sys/arch/alpha/alpha/machdep.c               |  6 +++---
 sys/arch/amd64/amd64/machdep.c               |  6 +++---
 sys/arch/amiga/amiga/machdep.c               |  6 +++---
 sys/arch/amigappc/amigappc/machdep.c         |  6 +++---
 sys/arch/arc/arc/machdep.c                   |  6 +++---
 sys/arch/arm/arm32/arm32_machdep.c           |  6 +++---
 sys/arch/atari/atari/machdep.c               |  6 +++---
 sys/arch/cesfic/cesfic/machdep.c             |  6 +++---
 sys/arch/cobalt/cobalt/machdep.c             |  6 +++---
 sys/arch/evbmips/alchemy/machdep.c           |  6 +++---
 sys/arch/evbmips/malta/machdep.c             |  6 +++---
 sys/arch/evbppc/explora/machdep.c            |  6 +++---
 sys/arch/evbppc/walnut/machdep.c             |  6 +++---
 sys/arch/evbsh5/evbsh5/machdep.c             |  7 ++++---
 sys/arch/hp300/hp300/machdep.c               |  6 +++---
 sys/arch/hp700/hp700/machdep.c               |  6 +++---
 sys/arch/hpcmips/hpcmips/machdep.c           |  6 +++---
 sys/arch/i386/i386/machdep.c                 |  6 +++---
 sys/arch/luna68k/luna68k/machdep.c           |  6 +++---
 sys/arch/mac68k/mac68k/machdep.c             |  6 +++---
 sys/arch/mipsco/mipsco/machdep.c             |  6 +++---
 sys/arch/mvme68k/mvme68k/machdep.c           |  6 +++---
 sys/arch/news68k/news68k/machdep.c           |  6 +++---
 sys/arch/newsmips/newsmips/machdep.c         |  6 +++---
 sys/arch/next68k/next68k/machdep.c           |  6 +++---
 sys/arch/pc532/pc532/machdep.c               |  6 +++---
 sys/arch/pdp10/pdp10/machdep.c               |  3 ++-
 sys/arch/playstation2/playstation2/machdep.c |  6 +++---
 sys/arch/pmax/pmax/machdep.c                 |  6 +++---
 sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c     |  6 +++---
 sys/arch/powerpc/oea/oea_machdep.c           |  6 +++---
 sys/arch/sbmips/sbmips/machdep.c             |  6 +++---
 sys/arch/sgimips/sgimips/machdep.c           |  6 +++---
 sys/arch/sh3/sh3/sh3_machdep.c               |  6 +++---
 sys/arch/sparc/sparc/machdep.c               |  6 +++---
 sys/arch/sparc64/sparc64/machdep.c           |  6 +++---
 sys/arch/sun2/sun2/machdep.c                 |  6 +++---
 sys/arch/sun3/sun3/machdep.c                 |  6 +++---
 sys/arch/sun3/sun3x/machdep.c                |  6 +++---
 sys/arch/vax/vax/machdep.c                   |  7 ++++---
 sys/arch/x68k/x68k/machdep.c                 |  6 +++---
 sys/arch/xen/i386/machdep.c                  |  6 +++---
 sys/kern/init_main.c                         |  5 ++---
 45 files changed, 135 insertions(+), 133 deletions(-)

diffs (truncated from 1207 to 300 lines):

diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/acorn26/acorn26/machdep.c
--- a/sys/arch/acorn26/acorn26/machdep.c        Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/acorn26/acorn26/machdep.c        Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.14 2005/02/11 02:09:39 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.15 2005/04/25 15:02:02 lukem Exp $ */
 
 /*-
  * Copyright (c) 1998 Ben Harris
@@ -32,7 +32,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.14 2005/02/11 02:09:39 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.15 2005/04/25 15:02:02 lukem Exp $");
 
 #include <sys/buf.h>
 #include <sys/kernel.h>
@@ -152,7 +152,7 @@
        /* Stuff to do here: */
        /* initmsgbuf() is called from start() */
 
-       printf("%s", version);
+       printf("%s%s", copyright, version);
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
        printf("total memory = %s\n", pbuf);
 
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/algor/algor/machdep.c
--- a/sys/arch/algor/algor/machdep.c    Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/algor/algor/machdep.c    Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.26 2003/12/30 12:33:13 pk Exp $  */
+/*     $NetBSD: machdep.c,v 1.27 2005/04/25 15:02:02 lukem Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -113,7 +113,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.26 2003/12/30 12:33:13 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.27 2005/04/25 15:02:02 lukem Exp $");
 
 #include "opt_algor_p4032.h"
 #include "opt_algor_p5064.h" 
@@ -625,7 +625,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        printf("%s\n", cpu_model);
        format_bytes(pbuf, sizeof(pbuf), ptoa(physmem));
        printf("total memory = %s\n", pbuf);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.283 2004/07/07 02:46:14 mhitch Exp $ */
+/* $NetBSD: machdep.c,v 1.284 2005/04/25 15:02:02 lukem Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.283 2004/07/07 02:46:14 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.284 2005/04/25 15:02:02 lukem Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -834,7 +834,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        identifycpu();
        format_bytes(pbuf, sizeof(pbuf), ptoa(totalphysmem));
        printf("total memory = %s\n", pbuf);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.32 2005/04/01 11:59:22 yamt Exp $        */
+/*     $NetBSD: machdep.c,v 1.33 2005/04/25 15:02:02 lukem Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.32 2005/04/01 11:59:22 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.33 2005/04/25 15:02:02 lukem Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_ddb.h"
@@ -257,7 +257,7 @@
 
        initmsgbuf((caddr_t)msgbuf_vaddr, round_page(MSGBUFSIZE));
 
-       printf("%s", version);
+       printf("%s%s", copyright, version);
 
        format_bytes(pbuf, sizeof(pbuf), ptoa(physmem));
        printf("total memory = %s\n", pbuf);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c    Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/amiga/amiga/machdep.c    Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.190 2004/03/24 15:34:47 atatat Exp $     */
+/*     $NetBSD: machdep.c,v 1.191 2005/04/25 15:02:02 lukem Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -85,7 +85,7 @@
 #include "opt_panicbutton.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.190 2004/03/24 15:34:47 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.191 2005/04/25 15:02:02 lukem Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -293,7 +293,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        identifycpu();
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
        printf("total memory = %s\n", pbuf);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/amigappc/amigappc/machdep.c
--- a/sys/arch/amigappc/amigappc/machdep.c      Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/amigappc/amigappc/machdep.c      Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.26 2003/12/30 12:33:15 pk Exp $ */
+/* $NetBSD: machdep.c,v 1.27 2005/04/25 15:02:03 lukem Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.26 2003/12/30 12:33:15 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.27 2005/04/25 15:02:03 lukem Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipkdb.h"
@@ -711,7 +711,7 @@
        proc0.p_addr = proc0paddr;
        v = (caddr_t)proc0paddr + USPACE;
 
-       printf(version);
+       printf("%s%s", copyright, version);
        identifycpu();
 
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c        Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/arc/arc/machdep.c        Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.85 2005/01/22 07:44:33 tsutsui Exp $     */
+/*     $NetBSD: machdep.c,v 1.86 2005/04/25 15:02:03 lukem Exp $       */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -78,7 +78,7 @@
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.85 2005/01/22 07:44:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.86 2005/04/25 15:02:03 lukem Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -528,7 +528,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        printf("%s\n", cpu_model);
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
        printf("total memory = %s\n", pbuf);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/arm/arm32/arm32_machdep.c
--- a/sys/arch/arm/arm32/arm32_machdep.c        Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/arm/arm32/arm32_machdep.c        Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $        */
+/*     $NetBSD: arm32_machdep.c,v 1.45 2005/04/25 15:02:03 lukem Exp $ */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.45 2005/04/25 15:02:03 lukem Exp $");
 
 #include "opt_md.h"
 #include "opt_pmap_debug.h"
@@ -241,7 +241,7 @@
         * Identify ourselves for the msgbuf (everything printed earlier will
         * not be buffered).
         */
-       printf(version);
+       printf("%s%s", copyright, version);
 
        format_bytes(pbuf, sizeof(pbuf), arm_ptob(physmem));
        printf("total memory = %s\n", pbuf);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c    Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/atari/atari/machdep.c    Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.135 2005/02/11 15:03:55 yamt Exp $       */
+/*     $NetBSD: machdep.c,v 1.136 2005/04/25 15:02:03 lukem Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.135 2005/02/11 15:03:55 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.136 2005/04/25 15:02:03 lukem Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -248,7 +248,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        identifycpu();
 
        format_bytes(pbuf, sizeof(pbuf), mem_size);
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/cesfic/cesfic/machdep.c
--- a/sys/arch/cesfic/cesfic/machdep.c  Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/cesfic/cesfic/machdep.c  Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.29 2005/02/11 15:03:55 yamt Exp $        */
+/*     $NetBSD: machdep.c,v 1.30 2005/04/25 15:02:03 lukem Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.29 2005/02/11 15:03:55 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.30 2005/04/25 15:02:03 lukem Exp $");
 
 #include "opt_bufcache.h"
 #include "opt_ddb.h"
@@ -307,7 +307,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        identifycpu();
        printf("real mem  = %d\n", ctob(physmem));
 
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c  Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c  Mon Apr 25 15:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.52 2004/08/28 12:32:48 tsutsui Exp $     */
+/*     $NetBSD: machdep.c,v 1.53 2005/04/25 15:02:03 lukem Exp $       */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.52 2004/08/28 12:32:48 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2005/04/25 15:02:03 lukem Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -270,7 +270,7 @@
        /*
         * Good {morning,afternoon,evening,night}.
         */
-       printf(version);
+       printf("%s%s", copyright, version);
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
        printf("total memory = %s\n", pbuf);
 
diff -r b5328bd39e13 -r fab37f80afe4 sys/arch/evbmips/alchemy/machdep.c
--- a/sys/arch/evbmips/alchemy/machdep.c        Mon Apr 25 14:37:49 2005 +0000
+++ b/sys/arch/evbmips/alchemy/machdep.c        Mon Apr 25 15:02:02 2005 +0000



Home | Main Index | Thread Index | Old Index