aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2011-01-17 22:58:41 +0000
committerWarner Losh <imp@FreeBSD.org>2011-01-17 22:58:41 +0000
commitb54e5c906c15fd5d6d490a5cb00375755082deaf (patch)
tree9f7a5435fd47f01c6c15481b8cb5c67f9cea55b0 /sys
parent2fea6431120dc19a04430c68b2484524074b2e43 (diff)
downloadsrc-b54e5c906c15fd5d6d490a5cb00375755082deaf.tar.gz
src-b54e5c906c15fd5d6d490a5cb00375755082deaf.zip
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.
Notes
Notes: svn path=/head/; revision=217516
Diffstat (limited to 'sys')
-rw-r--r--sys/mips/mips/machdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c
index 93b803be7648..9ddec7339615 100644
--- a/sys/mips/mips/machdep.c
+++ b/sys/mips/mips/machdep.c
@@ -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;