Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2009 08:01:50 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187295 - head/sys/mips/mips
Message-ID:  <200901150801.n0F81o2e068842@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Jan 15 08:01:50 2009
New Revision: 187295
URL: http://svn.freebsd.org/changeset/base/187295

Log:
  MFp4:
  
  Remove Maxmem.  It isn't used elsewhere in the system at this point...
  realmem is used instead.

Modified:
  head/sys/mips/mips/machdep.c

Modified: head/sys/mips/mips/machdep.c
==============================================================================
--- head/sys/mips/mips/machdep.c	Thu Jan 15 07:51:17 2009	(r187294)
+++ head/sys/mips/mips/machdep.c	Thu Jan 15 08:01:50 2009	(r187295)
@@ -85,6 +85,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/clock.h>
 #include <machine/asm.h>
 #include <machine/bootinfo.h>
+#include <machine/hwfunc.h>
 #ifdef DDB
 #include <sys/kdb.h>
 #include <ddb/ddb.h>
@@ -102,7 +103,6 @@ static char cpu_model[30];
 SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, cpu_model, 0, "Machine model");
 
 int cold = 1;
-int Maxmem;
 long realmem = 0;
 int cpu_clock = MIPS_DEFAULT_HZ;
 SYSCTL_INT(_hw, OID_AUTO, clockrate, CTLFLAG_RD, 
@@ -157,14 +157,9 @@ cpu_startup(void *dummy)
 
 	if (boothowto & RB_VERBOSE)
 		bootverbose++;
+	printf("real memory  = %lu (%luK bytes)\n", ptoa(realmem), ptoa(realmem) / 1024);
 
 	/*
-	 * Good {morning,afternoon,evening,night}.
-	 */
-	printf("real memory  = %lu (%luK bytes)\n", ptoa(Maxmem),
-	    ptoa(Maxmem) / 1024);
-	realmem = Maxmem;
-	/*
 	 * Display any holes after the first chunk of extended memory.
 	 */
 	if (bootverbose) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901150801.n0F81o2e068842>