svn commit: r187295 - head/sys/mips/mips

Warner Losh imp at FreeBSD.org
Thu Jan 15 00:01:51 PST 2009


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) {


More information about the svn-src-head mailing list