Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/rasoc Use cpu_startup_command (and now HWRE...
details: https://anonhg.NetBSD.org/src/rev/b3e622f5b2c7
branches: trunk
changeset: 768391:b3e622f5b2c7
user: matt <matt%NetBSD.org@localhost>
date: Tue Aug 16 06:59:19 2011 +0000
description:
Use cpu_startup_command (and now HWRENA gets properly initialized).
diffstat:
sys/arch/evbmips/rasoc/machdep.c | 34 +++++-----------------------------
1 files changed, 5 insertions(+), 29 deletions(-)
diffs (63 lines):
diff -r f217b809187b -r b3e622f5b2c7 sys/arch/evbmips/rasoc/machdep.c
--- a/sys/arch/evbmips/rasoc/machdep.c Tue Aug 16 06:58:15 2011 +0000
+++ b/sys/arch/evbmips/rasoc/machdep.c Tue Aug 16 06:59:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.4 2011/08/03 17:34:27 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.5 2011/08/16 06:59:19 matt Exp $ */
/*-
* Copyright (c) 2011 CradlePoint Technology, Inc.
* All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2011/08/03 17:34:27 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.5 2011/08/16 06:59:19 matt Exp $");
#include <sys/param.h>
#include <sys/boot_flag.h>
@@ -207,41 +207,17 @@
void
cpu_startup(void)
{
- char pbuf[9];
- vaddr_t minaddr, maxaddr;
#ifdef DEBUG
- extern int pmapdebug; /* XXX */
- int opmapdebug = pmapdebug;
-
+ extern int pmapdebug;
+ const int opmapdebug = pmapdebug;
pmapdebug = 0; /* Shut up pmap debug during bootstrap */
#endif
- /*
- * Good {morning,afternoon,evening,night}.
- */
- printf("%s%s", copyright, version);
- printf("Boot processor: %s\n", cpu_model);
- format_bytes(pbuf, sizeof(pbuf), physmem << PAGE_SHIFT);
- printf("total memory = %s\n", pbuf);
-
- /*
- * Allocate a submap for physio
- */
- minaddr = 0;
- 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.
- */
+ cpu_startup_common();
#ifdef DEBUG
pmapdebug = opmapdebug;
#endif
- format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
- printf("avail memory = %s\n", pbuf);
}
void
Home |
Main Index |
Thread Index |
Old Index