diff options
author | imp <imp@FreeBSD.org> | 2009-01-15 08:01:50 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-01-15 08:01:50 +0000 |
commit | 67abf0d9075018e614d3ed6921238ed3afcc9626 (patch) | |
tree | e444b30d0b00557fb7ea118e8a7f89b6e8dca8fd /sys/mips | |
parent | 5f0bc936194ce3d3349115523a6da58bfb144739 (diff) | |
download | FreeBSD-src-67abf0d9075018e614d3ed6921238ed3afcc9626.zip FreeBSD-src-67abf0d9075018e614d3ed6921238ed3afcc9626.tar.gz |
MFp4:
Remove Maxmem. It isn't used elsewhere in the system at this point...
realmem is used instead.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/mips/machdep.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c index 2b4676d..86a9d87 100644 --- a/sys/mips/mips/machdep.c +++ b/sys/mips/mips/machdep.c @@ -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) { |