Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/amiga Use MI routine banner() to print memory...
details: https://anonhg.NetBSD.org/src/rev/c9dc227539ff
branches: trunk
changeset: 764337:c9dc227539ff
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Apr 17 00:37:49 2011 +0000
description:
Use MI routine banner() to print memory size. Also fixes output for systems
with 2GB RAM.
diffstat:
sys/arch/amiga/amiga/machdep.c | 21 +++++++--------------
1 files changed, 7 insertions(+), 14 deletions(-)
diffs (59 lines):
diff -r 556ad2e024bd -r c9dc227539ff sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Sun Apr 17 00:05:36 2011 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Sun Apr 17 00:37:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.231 2011/03/04 22:25:24 joerg Exp $ */
+/* $NetBSD: machdep.c,v 1.232 2011/04/17 00:37:49 mlelstv Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -48,7 +48,7 @@
#include "opt_m68k_arch.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.231 2011/03/04 22:25:24 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.232 2011/04/17 00:37:49 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -208,7 +208,6 @@
void
cpu_startup(void)
{
- char pbuf[9];
u_int i;
#ifdef DEBUG
extern int pmapdebug;
@@ -237,15 +236,6 @@
pmap_update(pmap_kernel());
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
- /*
- * Good {morning,afternoon,evening,night}.
- */
- printf("%s%s", copyright, version);
- identifycpu();
- format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
- printf("total memory = %s\n", pbuf);
-
-
minaddr = 0;
/*
@@ -254,11 +244,14 @@
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
VM_PHYS_SIZE, 0, false, NULL);
+ /*
+ * Good {morning,afternoon,evening,night}.
+ */
+ banner();
+
#ifdef DEBUG
pmapdebug = opmapdebug;
#endif
- format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
- printf("avail memory = %s\n", pbuf);
/*
* display memory configuration passed from loadbsd
Home |
Main Index |
Thread Index |
Old Index