svn commit: r217516 - head/sys/mips/mips
Warner Losh
imp at FreeBSD.org
Mon Jan 17 22:58:42 UTC 2011
Author: imp
Date: Mon Jan 17 22:58:41 2011
New Revision: 217516
URL: http://svn.freebsd.org/changeset/base/217516
Log:
Make cpu_model public (otherwise there's no way to set it) and bump it
to 80 characters.
Add hw.board to export board information, if known, from the mips kernel.
Modified:
head/sys/mips/mips/machdep.c
Modified: head/sys/mips/mips/machdep.c
==============================================================================
--- head/sys/mips/mips/machdep.c Mon Jan 17 22:58:28 2011 (r217515)
+++ head/sys/mips/mips/machdep.c Mon Jan 17 22:58:41 2011 (r217516)
@@ -103,9 +103,12 @@ __FBSDID("$FreeBSD$");
char machine[] = "mips";
SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, "Machine class");
-static char cpu_model[30];
+char cpu_model[80];
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, cpu_model, 0, "Machine model");
+char cpu_board[80];
+SYSCTL_STRING(_hw, OID_AUTO, board, CTLFLAG_RD, cpu_board, 0, "Machine board");
+
int cold = 1;
long realmem = 0;
long Maxmem = 0;
More information about the svn-src-head
mailing list