From owner-svn-src-head@FreeBSD.ORG Mon Jan 17 22:58:42 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ED6D106564A; Mon, 17 Jan 2011 22:58:42 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F2D088FC12; Mon, 17 Jan 2011 22:58:41 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0HMwfuL015619; Mon, 17 Jan 2011 22:58:41 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0HMwfmW015617; Mon, 17 Jan 2011 22:58:41 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201101172258.p0HMwfmW015617@svn.freebsd.org> From: Warner Losh Date: Mon, 17 Jan 2011 22:58:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217516 - head/sys/mips/mips X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 22:58:42 -0000 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;