Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Use banner() instead of amd64's custom ...



details:   https://anonhg.NetBSD.org/src/rev/625d4c9967a1
branches:  trunk
changeset: 750425:625d4c9967a1
user:      jym <jym%NetBSD.org@localhost>
date:      Thu Dec 31 01:11:28 2009 +0000

description:
Use banner() instead of amd64's custom use of printf's for copyright
notice and total/available memory.

diffstat:

 sys/arch/amd64/amd64/machdep.c |  14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diffs (49 lines):

diff -r 2ba0e13ab72a -r 625d4c9967a1 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Wed Dec 30 23:54:52 2009 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Thu Dec 31 01:11:28 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.140 2009/12/10 14:13:48 matt Exp $       */
+/*     $NetBSD: machdep.c,v 1.141 2009/12/31 01:11:28 jym Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
@@ -107,7 +107,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.140 2009/12/10 14:13:48 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.141 2009/12/31 01:11:28 jym Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -301,7 +301,6 @@
        int x, y;
        vaddr_t minaddr, maxaddr;
        psize_t sz;
-       char pbuf[9];
 
        /*
         * For console drivers that require uvm and pmap to be initialized,
@@ -334,11 +333,6 @@
 
        initmsgbuf((void *)msgbuf_vaddr, round_page(sz));
 
-       printf("%s%s", copyright, version);
-
-       format_bytes(pbuf, sizeof(pbuf), ptoa(physmem));
-       printf("total memory = %s\n", pbuf);
-
        minaddr = 0;
 
        /*
@@ -357,8 +351,8 @@
        module_map_store.vmk_map.pmap = pmap_kernel();
        module_map = &module_map_store.vmk_map;
 
-       format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
-       printf("avail memory = %s\n", pbuf);
+       /* Say hello. */
+       banner();
 
 #if NISA > 0 || NPCI > 0
        /* Safe for i/o port / memory space allocation to use malloc now. */



Home | Main Index | Thread Index | Old Index