Module Name: src
Committed By: matt
Date: Fri Jun 26 22:12:21 UTC 2015
Modified Files:
src/sys/arch/evbmips/adm5120: machdep.c
Log Message:
Use cpu_startup_common()
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/evbmips/adm5120/machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbmips/adm5120/machdep.c
diff -u src/sys/arch/evbmips/adm5120/machdep.c:1.23 src/sys/arch/evbmips/adm5120/machdep.c:1.24
--- src/sys/arch/evbmips/adm5120/machdep.c:1.23 Mon Mar 24 20:06:31 2014
+++ src/sys/arch/evbmips/adm5120/machdep.c Fri Jun 26 22:12:21 2015
@@ -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 @@ void
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