Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/adm5120 Use cpu_startup_common()
details: https://anonhg.NetBSD.org/src/rev/9ed509e7bcde
branches: trunk
changeset: 339098:9ed509e7bcde
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 26 22:12:21 2015 +0000
description:
Use cpu_startup_common()
diffstat:
sys/arch/evbmips/adm5120/machdep.c | 40 ++-----------------------------------
1 files changed, 3 insertions(+), 37 deletions(-)
diffs (66 lines):
diff -r af1b0064057c -r 9ed509e7bcde sys/arch/evbmips/adm5120/machdep.c
--- a/sys/arch/evbmips/adm5120/machdep.c Fri Jun 26 22:11:10 2015 +0000
+++ b/sys/arch/evbmips/adm5120/machdep.c Fri Jun 26 22:12:21 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.23 2014/03/24 20:06:31 christos Exp $ */
+/* $NetBSD: machdep.c,v 1.24 2015/06/26 22:12:21 matt Exp $ */
/*-
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2014/03/24 20:06:31 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2015/06/26 22:12:21 matt Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -418,46 +418,12 @@
cpu_startup(void)
{
struct adm5120_config *admc = &adm5120_configuration;
- char pbuf[9];
- vaddr_t minaddr, maxaddr;
-#ifdef DEBUG
- extern int pmapdebug; /* XXX */
- int opmapdebug = pmapdebug;
-
- pmapdebug = 0; /* Shut up pmap debug during bootstrap */
-#endif
if ((admc->properties = prop_dictionary_create()) == NULL)
printf("%s: prop_dictionary_create\n", __func__);
parse_args(admc->properties, admc->argc, admc->argv, NULL);
- /*
- * 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.
- */
-
-#ifdef DEBUG
- pmapdebug = opmapdebug;
-#endif
- format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
- printf("avail memory = %s\n", pbuf);
+ cpu_startup_common();
}
void
Home |
Main Index |
Thread Index |
Old Index