Date: Mon, 17 Jan 2011 22:58:41 +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: r217516 - head/sys/mips/mips Message-ID: <201101172258.p0HMwfmW015617@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101172258.p0HMwfmW015617>