Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cobalt/cobalt use cpu_startup_common
details: https://anonhg.NetBSD.org/src/rev/575ecaebecf9
branches: trunk
changeset: 339148:575ecaebecf9
user: matt <matt%NetBSD.org@localhost>
date: Mon Jun 29 17:52:53 2015 +0000
description:
use cpu_startup_common
diffstat:
sys/arch/cobalt/cobalt/machdep.c | 31 +++----------------------------
1 files changed, 3 insertions(+), 28 deletions(-)
diffs (52 lines):
diff -r ea8532e1182e -r 575ecaebecf9 sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c Mon Jun 29 16:48:20 2015 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c Mon Jun 29 17:52:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.116 2014/04/03 19:15:43 joerg Exp $ */
+/* $NetBSD: machdep.c,v 1.117 2015/06/29 17:52:53 matt Exp $ */
/*-
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.116 2014/04/03 19:15:43 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.117 2015/06/29 17:52:53 matt Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -310,32 +310,7 @@
void
cpu_startup(void)
{
- vaddr_t minaddr, maxaddr;
- char pbuf[9];
-
- /*
- * Good {morning,afternoon,evening,night}.
- */
- printf("%s%s", copyright, version);
- printf("%s\n", cpu_getmodel());
- format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
- printf("total memory = %s\n", pbuf);
-
- minaddr = 0;
- /*
- * Allocate a submap for physio.
- */
- phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, 0, false, NULL);
-
- /*
- * (No need to allocate an mbuf cluster submap. Mbuf clusters
- * are allocated via the pool allocator, and we use KSEG to
- * map those pages.)
- */
-
- format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
- printf("avail memory = %s\n", pbuf);
+ cpu_startup_common();
}
static int waittime = -1;
Home |
Main Index |
Thread Index |
Old Index